 /* ManutencaoDeUsuarios.java
 *
 * Created on 08/11/2011, 10:37:19
 */
package scc.Telas;

import Dao.UserDAO;
import Entidade.*;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.sql.SQLException;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.*;
import javax.swing.table.DefaultTableCellRenderer;
import javax.swing.table.DefaultTableModel;
import net.java.balloontip.BalloonTip;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.view.JasperViewer;


/**
 *
 * @author Davidson
 */
public class frmCaixa extends javax.swing.JInternalFrame {

    private static frmCaixa telaCaixa;
    private static Usuario usuario;
    private static UserDAO dao;
    private Caixa caixa = dao.obterUltimoCaixa();
    final NumberFormat f = new DecimalFormat("#,##0.00");
    final NumberFormat f5 = new DecimalFormat("00000");
    DefaultTableModel tabelaLancamento;
    DefaultListModel listModel;
    private List<LancamentosEfetuados> listaLancamentosEfetuados;


    
    /** Creates new form ManutencaoDeUsuarios */
    private frmCaixa() throws SQLException {
        initComponents();
        this.setVisible(true);
        this.moveToFront();                
        configuraTabela(tableLancamento, 1);
        listPagamentos.setModel( new DefaultListModel());
        listModel = (DefaultListModel)listPagamentos.getModel();
        
        
        //Configura os campos de texto da Composição para aceitar apenas números e com tamanho máximo de dígitos
        configuraCampoNumericoComposicao(7);
        configuraCampoNumericoMalote(15);
        carregarCaixa(caixa);
        atualizarSaldos();
        atualizarValorComposicaoCaixa();        
        atualizarValorComposicaoLancamento();
        carregarLancamentosEfetuados();
        carregarTransportadoras();
        carregarContaCorrente();
        carregarTipoPagamento();
        
        //Verifica se o último caixa está aberto
        if (caixa.getStatus() == 0) {
            //JOptionPane.showMessageDialog(this, "Caixa Aberto!");
            btAbrirCaixa.setEnabled(false);
            
            //Verifica se o Usuário atual é o responsável pelo Caixa aberto
            if (usuario.getId() == caixa.getId_usuario()) {
                //JOptionPane.showMessageDialog(this, "Mesmo Usuário!");
                
                //Verifica se o Turno é o mesmo
                int s = caixa.getOvertime();                    
                int m = s / 60;
                int h = m / 60;
                int min = m % 60;
                if (caixa.getOvertime() >= 0) {                    
                    
                    JOptionPane.showMessageDialog(this.getParent(), "Turno encerrado a " + h + " horas e " + min + " minutos."
                            + "\nFavor efetuar o Fechamento do Caixa.");
                } else {

                    JOptionPane.showMessageDialog(this.getParent(), "Seu turno será encerrado em " + h * -1 + " horas e " + min * -1 + " minutos.");
                }
                
                //Habilita o acesso as demais abas
                tabPrincipal.setEnabled(true);                
                
            } else if(caixa.getId_usuario() == 0) {
                btAbrirCaixa.setEnabled(true);
                btFecharCaixa.setEnabled(false);
            } else {
                JOptionPane.showMessageDialog(this.getParent(), "Acesso Negado!\nEste Caixa pertence ao usuario " + caixa.getNome() + ".");
                btAbrirCaixa.setEnabled(false);
                btFecharCaixa.setEnabled(false);
            }
        } else {
            btFecharCaixa.setEnabled(false);
        }
    }
    
    public static frmCaixa getInstancia(UserDAO dao2, Usuario usuario2) throws SQLException{
        if (telaCaixa == null) {
            dao = dao2;
            usuario = usuario2;
            telaCaixa = new frmCaixa();
        }
        return telaCaixa;
    }
    
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        bindingGroup = new org.jdesktop.beansbinding.BindingGroup();

        bgTipoMalote = new javax.swing.ButtonGroup();
        tabPrincipal = new javax.swing.JTabbedPane();
        abaCaixa = new javax.swing.JPanel();
        pCabecalho = new javax.swing.JPanel();
        lblDataAbertura = new javax.swing.JLabel();
        lblNome = new javax.swing.JLabel();
        lblUsername = new javax.swing.JLabel();
        lblDataFechamento = new javax.swing.JLabel();
        lblDataAbertura1 = new javax.swing.JLabel();
        lblDataFechamento1 = new javax.swing.JLabel();
        txtNome = new javax.swing.JLabel();
        txtUsername = new javax.swing.JLabel();
        txtDataAbertura = new javax.swing.JLabel();
        txtDataFechamento = new javax.swing.JLabel();
        txtTurno = new javax.swing.JLabel();
        txtStatus = new javax.swing.JLabel();
        pComposicao = new javax.swing.JPanel();
        jLabel25 = new javax.swing.JLabel();
        jLabel26 = new javax.swing.JLabel();
        jLabel27 = new javax.swing.JLabel();
        jLabel28 = new javax.swing.JLabel();
        jLabel29 = new javax.swing.JLabel();
        jLabel30 = new javax.swing.JLabel();
        jLabel31 = new javax.swing.JLabel();
        lblValorTotalComposicaoCaixa = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        jSeparator2 = new javax.swing.JSeparator();
        jPanel7 = new javax.swing.JPanel();
        txtQ100 = new javax.swing.JTextField();
        txtQ050 = new javax.swing.JTextField();
        txtQ025 = new javax.swing.JTextField();
        txtQ010 = new javax.swing.JTextField();
        txtQ005 = new javax.swing.JTextField();
        txtQ001 = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        lblValor001 = new javax.swing.JLabel();
        lblValor005 = new javax.swing.JLabel();
        lblValor010 = new javax.swing.JLabel();
        lblValor025 = new javax.swing.JLabel();
        lblValor050 = new javax.swing.JLabel();
        lblValor100 = new javax.swing.JLabel();
        jPanel8 = new javax.swing.JPanel();
        txtQ10000 = new javax.swing.JTextField();
        txtQ5000 = new javax.swing.JTextField();
        txtQ2000 = new javax.swing.JTextField();
        txtQ1000 = new javax.swing.JTextField();
        txtQ500 = new javax.swing.JTextField();
        txtQ200 = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        lblValor200 = new javax.swing.JLabel();
        lblValor500 = new javax.swing.JLabel();
        lblValor1000 = new javax.swing.JLabel();
        lblValor2000 = new javax.swing.JLabel();
        lblValor5000 = new javax.swing.JLabel();
        lblValor10000 = new javax.swing.JLabel();
        pRodape = new javax.swing.JPanel();
        lblNome1 = new javax.swing.JLabel();
        txtNome1 = new javax.swing.JLabel();
        txtUsername1 = new javax.swing.JLabel();
        txtDataAbertura1 = new javax.swing.JLabel();
        txtDataFechamento1 = new javax.swing.JLabel();
        txtTurno1 = new javax.swing.JLabel();
        ftfSaldoAnterior = new javax.swing.JFormattedTextField();
        ftfTotalEntradas = new javax.swing.JFormattedTextField();
        lblNome3 = new javax.swing.JLabel();
        ftfTotalSaidas = new javax.swing.JFormattedTextField();
        lblNome4 = new javax.swing.JLabel();
        lblNome6 = new javax.swing.JLabel();
        ftfSaldoTotal = new javax.swing.JFormattedTextField();
        ftfTotalPagamento = new javax.swing.JFormattedTextField();
        lblNome2 = new javax.swing.JLabel();
        btAbrirCaixa = new javax.swing.JButton();
        btFecharCaixa = new javax.swing.JButton();
        lblTotal27 = new javax.swing.JLabel();
        jSeparator16 = new javax.swing.JSeparator();
        btReimprimirRecibo = new javax.swing.JButton();
        abaLancamento = new javax.swing.JPanel();
        tabLancamento = new javax.swing.JTabbedPane();
        jpRetiradaDeTroco = new javax.swing.JPanel();
        pSuperior = new javax.swing.JPanel();
        cbTipoLancamento = new javax.swing.JComboBox();
        cbPraca = new javax.swing.JComboBox();
        lblTotal1 = new javax.swing.JLabel();
        lblTotal2 = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        txtL001 = new javax.swing.JTextField();
        txtL005 = new javax.swing.JTextField();
        txtL010 = new javax.swing.JTextField();
        txtL025 = new javax.swing.JTextField();
        txtL100 = new javax.swing.JTextField();
        txtL050 = new javax.swing.JTextField();
        txtL10000 = new javax.swing.JTextField();
        txtL5000 = new javax.swing.JTextField();
        txtL2000 = new javax.swing.JTextField();
        txtL1000 = new javax.swing.JTextField();
        txtL500 = new javax.swing.JTextField();
        txtL200 = new javax.swing.JTextField();
        jLabel14 = new javax.swing.JLabel();
        lblL001 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        lblL005 = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        lblL010 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        lblL025 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        lblL050 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        lblL100 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        jLabel22 = new javax.swing.JLabel();
        jLabel23 = new javax.swing.JLabel();
        jLabel24 = new javax.swing.JLabel();
        jLabel32 = new javax.swing.JLabel();
        lblL10000 = new javax.swing.JLabel();
        lblL5000 = new javax.swing.JLabel();
        lblL2000 = new javax.swing.JLabel();
        lblL1000 = new javax.swing.JLabel();
        lblL500 = new javax.swing.JLabel();
        lblL200 = new javax.swing.JLabel();
        jSeparator3 = new javax.swing.JSeparator();
        jSeparator4 = new javax.swing.JSeparator();
        jLabel33 = new javax.swing.JLabel();
        jLabel34 = new javax.swing.JLabel();
        jLabel35 = new javax.swing.JLabel();
        jLabel36 = new javax.swing.JLabel();
        jLabel37 = new javax.swing.JLabel();
        jLabel38 = new javax.swing.JLabel();
        lblLimpaL = new javax.swing.JLabel();
        lblTotal = new javax.swing.JLabel();
        lblValorComposicaoRetirada = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        lblTotal7 = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        textAreaObservacaoL = new javax.swing.JTextArea();
        lblTotal8 = new javax.swing.JLabel();
        lblTotal11 = new javax.swing.JLabel();
        lblRestante = new javax.swing.JLabel();
        btRegistrarRetirada = new javax.swing.JButton();
        lblTotal9 = new javax.swing.JLabel();
        jSeparator9 = new javax.swing.JSeparator();
        jpRetornoDeTroco = new javax.swing.JPanel();
        pCabecalhoRetorno = new javax.swing.JPanel();
        cbRetiradaDeTroco = new javax.swing.JComboBox();
        lblTotal3 = new javax.swing.JLabel();
        pComposicaoRetorno = new javax.swing.JPanel();
        txtRetorno001 = new javax.swing.JTextField();
        txtRetorno005 = new javax.swing.JTextField();
        txtRetorno010 = new javax.swing.JTextField();
        txtRetorno025 = new javax.swing.JTextField();
        txtRetorno100 = new javax.swing.JTextField();
        txtRetorno050 = new javax.swing.JTextField();
        txtRetorno10000 = new javax.swing.JTextField();
        txtRetorno5000 = new javax.swing.JTextField();
        txtRetorno2000 = new javax.swing.JTextField();
        txtRetorno1000 = new javax.swing.JTextField();
        txtRetorno500 = new javax.swing.JTextField();
        txtRetorno200 = new javax.swing.JTextField();
        jLabel75 = new javax.swing.JLabel();
        lblRetorno001 = new javax.swing.JLabel();
        jLabel76 = new javax.swing.JLabel();
        lblRetorno005 = new javax.swing.JLabel();
        jLabel77 = new javax.swing.JLabel();
        lblRetorno010 = new javax.swing.JLabel();
        jLabel78 = new javax.swing.JLabel();
        lblRetorno025 = new javax.swing.JLabel();
        jLabel79 = new javax.swing.JLabel();
        lblRetorno050 = new javax.swing.JLabel();
        jLabel80 = new javax.swing.JLabel();
        lblRetorno100 = new javax.swing.JLabel();
        jLabel81 = new javax.swing.JLabel();
        jLabel82 = new javax.swing.JLabel();
        jLabel83 = new javax.swing.JLabel();
        jLabel84 = new javax.swing.JLabel();
        jLabel85 = new javax.swing.JLabel();
        jLabel86 = new javax.swing.JLabel();
        lblRetorno10000 = new javax.swing.JLabel();
        lblRetorno5000 = new javax.swing.JLabel();
        lblRetorno2000 = new javax.swing.JLabel();
        lblRetorno1000 = new javax.swing.JLabel();
        lblRetorno500 = new javax.swing.JLabel();
        lblRetorno200 = new javax.swing.JLabel();
        jSeparator12 = new javax.swing.JSeparator();
        jSeparator13 = new javax.swing.JSeparator();
        jLabel87 = new javax.swing.JLabel();
        jLabel88 = new javax.swing.JLabel();
        jLabel89 = new javax.swing.JLabel();
        jLabel90 = new javax.swing.JLabel();
        jLabel91 = new javax.swing.JLabel();
        jLabel92 = new javax.swing.JLabel();
        lblLimpaRetorno = new javax.swing.JLabel();
        lblTotal28 = new javax.swing.JLabel();
        lblValorComposicaoRetorno = new javax.swing.JLabel();
        pObservacaoRetorno = new javax.swing.JPanel();
        lblTotal20 = new javax.swing.JLabel();
        jScrollPane6 = new javax.swing.JScrollPane();
        textAreaObservacaoRetorno = new javax.swing.JTextArea();
        lblTotal21 = new javax.swing.JLabel();
        lblTotal22 = new javax.swing.JLabel();
        lblRestanteRetorno = new javax.swing.JLabel();
        btRegistrarRetorno = new javax.swing.JButton();
        lblTotal23 = new javax.swing.JLabel();
        jSeparator14 = new javax.swing.JSeparator();
        jpCreditoExterno = new javax.swing.JPanel();
        pSuperior1 = new javax.swing.JPanel();
        jPanel3 = new javax.swing.JPanel();
        txtCE001 = new javax.swing.JTextField();
        txtCE005 = new javax.swing.JTextField();
        txtCE010 = new javax.swing.JTextField();
        txtCE025 = new javax.swing.JTextField();
        txtCE100 = new javax.swing.JTextField();
        txtCE050 = new javax.swing.JTextField();
        txtCE10000 = new javax.swing.JTextField();
        txtCE5000 = new javax.swing.JTextField();
        txtCE2000 = new javax.swing.JTextField();
        txtCE1000 = new javax.swing.JTextField();
        txtCE500 = new javax.swing.JTextField();
        txtCE200 = new javax.swing.JTextField();
        jLabel39 = new javax.swing.JLabel();
        lblCE001 = new javax.swing.JLabel();
        jLabel40 = new javax.swing.JLabel();
        lblCE005 = new javax.swing.JLabel();
        jLabel41 = new javax.swing.JLabel();
        lblCE010 = new javax.swing.JLabel();
        jLabel42 = new javax.swing.JLabel();
        lblCE025 = new javax.swing.JLabel();
        jLabel43 = new javax.swing.JLabel();
        lblCE050 = new javax.swing.JLabel();
        jLabel44 = new javax.swing.JLabel();
        lblCE100 = new javax.swing.JLabel();
        jLabel45 = new javax.swing.JLabel();
        jLabel46 = new javax.swing.JLabel();
        jLabel47 = new javax.swing.JLabel();
        jLabel48 = new javax.swing.JLabel();
        jLabel49 = new javax.swing.JLabel();
        jLabel50 = new javax.swing.JLabel();
        lblCE10000 = new javax.swing.JLabel();
        lblCE5000 = new javax.swing.JLabel();
        lblCE2000 = new javax.swing.JLabel();
        lblCE1000 = new javax.swing.JLabel();
        lblCE500 = new javax.swing.JLabel();
        lblCE200 = new javax.swing.JLabel();
        jSeparator5 = new javax.swing.JSeparator();
        jSeparator6 = new javax.swing.JSeparator();
        jLabel51 = new javax.swing.JLabel();
        jLabel52 = new javax.swing.JLabel();
        jLabel53 = new javax.swing.JLabel();
        jLabel54 = new javax.swing.JLabel();
        jLabel55 = new javax.swing.JLabel();
        jLabel56 = new javax.swing.JLabel();
        lblLimpaL1 = new javax.swing.JLabel();
        lblTotal29 = new javax.swing.JLabel();
        lblValorComposicaoCE = new javax.swing.JLabel();
        jPanel4 = new javax.swing.JPanel();
        lblTotal6 = new javax.swing.JLabel();
        jScrollPane3 = new javax.swing.JScrollPane();
        textAreaObservacaoCE = new javax.swing.JTextArea();
        lblTotal12 = new javax.swing.JLabel();
        lblTotal13 = new javax.swing.JLabel();
        lblRestanteCE = new javax.swing.JLabel();
        lblTotal10 = new javax.swing.JLabel();
        jSeparator10 = new javax.swing.JSeparator();
        btRegistrarCE = new javax.swing.JButton();
        jpPagamentosDiversos = new javax.swing.JPanel();
        pSuperior3 = new javax.swing.JPanel();
        cbTipoPagamento = new javax.swing.JComboBox();
        lblTipoPagamento = new javax.swing.JLabel();
        jPanel10 = new javax.swing.JPanel();
        txtP001 = new javax.swing.JTextField();
        txtP005 = new javax.swing.JTextField();
        txtP010 = new javax.swing.JTextField();
        txtP025 = new javax.swing.JTextField();
        txtP100 = new javax.swing.JTextField();
        txtP050 = new javax.swing.JTextField();
        txtP10000 = new javax.swing.JTextField();
        txtP5000 = new javax.swing.JTextField();
        txtP2000 = new javax.swing.JTextField();
        txtP1000 = new javax.swing.JTextField();
        txtP500 = new javax.swing.JTextField();
        txtP200 = new javax.swing.JTextField();
        jLabel93 = new javax.swing.JLabel();
        lblP001 = new javax.swing.JLabel();
        jLabel94 = new javax.swing.JLabel();
        lblP005 = new javax.swing.JLabel();
        jLabel95 = new javax.swing.JLabel();
        lblP010 = new javax.swing.JLabel();
        jLabel96 = new javax.swing.JLabel();
        lblP025 = new javax.swing.JLabel();
        jLabel97 = new javax.swing.JLabel();
        lblP050 = new javax.swing.JLabel();
        jLabel98 = new javax.swing.JLabel();
        lblP100 = new javax.swing.JLabel();
        jLabel99 = new javax.swing.JLabel();
        jLabel100 = new javax.swing.JLabel();
        jLabel101 = new javax.swing.JLabel();
        jLabel102 = new javax.swing.JLabel();
        jLabel103 = new javax.swing.JLabel();
        jLabel104 = new javax.swing.JLabel();
        lblP10000 = new javax.swing.JLabel();
        lblP5000 = new javax.swing.JLabel();
        lblP2000 = new javax.swing.JLabel();
        lblP1000 = new javax.swing.JLabel();
        lblP500 = new javax.swing.JLabel();
        lblP200 = new javax.swing.JLabel();
        jSeparator15 = new javax.swing.JSeparator();
        jSeparator17 = new javax.swing.JSeparator();
        jLabel105 = new javax.swing.JLabel();
        jLabel106 = new javax.swing.JLabel();
        jLabel107 = new javax.swing.JLabel();
        jLabel108 = new javax.swing.JLabel();
        jLabel109 = new javax.swing.JLabel();
        jLabel110 = new javax.swing.JLabel();
        lblLimpaP = new javax.swing.JLabel();
        lblTotal19 = new javax.swing.JLabel();
        lblValorComposicaoPagamento = new javax.swing.JLabel();
        jPanel11 = new javax.swing.JPanel();
        lblTotal31 = new javax.swing.JLabel();
        jScrollPane7 = new javax.swing.JScrollPane();
        textAreaObservacaoP = new javax.swing.JTextArea();
        lblTotal32 = new javax.swing.JLabel();
        lblTotal33 = new javax.swing.JLabel();
        lblRestanteP = new javax.swing.JLabel();
        btRegistrarPagamento = new javax.swing.JButton();
        lblTitulo = new javax.swing.JLabel();
        jSeparator18 = new javax.swing.JSeparator();
        abaListaLancamentos = new javax.swing.JPanel();
        jPanel6 = new javax.swing.JPanel();
        btEstornar = new javax.swing.JButton();
        btVisualizarLancamento = new javax.swing.JButton();
        jScrollPane4 = new javax.swing.JScrollPane();
        tableLancamento = new javax.swing.JTable();
        jpGerarMalote = new javax.swing.JPanel();
        pSuperior2 = new javax.swing.JPanel();
        lblTotal39 = new javax.swing.JLabel();
        txtGuia = new javax.swing.JTextField();
        txtMalote = new javax.swing.JTextField();
        lblTotal40 = new javax.swing.JLabel();
        lblTotal41 = new javax.swing.JLabel();
        cbContaCorrente = new javax.swing.JComboBox();
        lblTotal42 = new javax.swing.JLabel();
        cbTransportadora = new javax.swing.JComboBox();
        jPanel5 = new javax.swing.JPanel();
        txtS001 = new javax.swing.JTextField();
        txtS005 = new javax.swing.JTextField();
        txtS010 = new javax.swing.JTextField();
        txtS025 = new javax.swing.JTextField();
        txtS100 = new javax.swing.JTextField();
        txtS050 = new javax.swing.JTextField();
        txtS10000 = new javax.swing.JTextField();
        txtS5000 = new javax.swing.JTextField();
        txtS2000 = new javax.swing.JTextField();
        txtS1000 = new javax.swing.JTextField();
        txtS500 = new javax.swing.JTextField();
        txtS200 = new javax.swing.JTextField();
        jLabel57 = new javax.swing.JLabel();
        lblS001 = new javax.swing.JLabel();
        jLabel58 = new javax.swing.JLabel();
        lblS005 = new javax.swing.JLabel();
        jLabel59 = new javax.swing.JLabel();
        lblS010 = new javax.swing.JLabel();
        jLabel60 = new javax.swing.JLabel();
        lblS025 = new javax.swing.JLabel();
        jLabel61 = new javax.swing.JLabel();
        lblS050 = new javax.swing.JLabel();
        jLabel62 = new javax.swing.JLabel();
        lblS100 = new javax.swing.JLabel();
        jLabel63 = new javax.swing.JLabel();
        jLabel64 = new javax.swing.JLabel();
        jLabel65 = new javax.swing.JLabel();
        jLabel66 = new javax.swing.JLabel();
        jLabel67 = new javax.swing.JLabel();
        jLabel68 = new javax.swing.JLabel();
        lblS10000 = new javax.swing.JLabel();
        lblS5000 = new javax.swing.JLabel();
        lblS2000 = new javax.swing.JLabel();
        lblS1000 = new javax.swing.JLabel();
        lblS500 = new javax.swing.JLabel();
        lblS200 = new javax.swing.JLabel();
        jSeparator7 = new javax.swing.JSeparator();
        jSeparator8 = new javax.swing.JSeparator();
        jLabel69 = new javax.swing.JLabel();
        jLabel70 = new javax.swing.JLabel();
        jLabel71 = new javax.swing.JLabel();
        jLabel72 = new javax.swing.JLabel();
        jLabel73 = new javax.swing.JLabel();
        jLabel74 = new javax.swing.JLabel();
        lblLimpaS = new javax.swing.JLabel();
        lblTotal30 = new javax.swing.JLabel();
        lblValorComposicaoMalote = new javax.swing.JLabel();
        jPanel9 = new javax.swing.JPanel();
        lblTotal15 = new javax.swing.JLabel();
        jScrollPane5 = new javax.swing.JScrollPane();
        textAreaObservacaoMalote = new javax.swing.JTextArea();
        lblTotal16 = new javax.swing.JLabel();
        lblTotal17 = new javax.swing.JLabel();
        lblRestanteS = new javax.swing.JLabel();
        lblTotal18 = new javax.swing.JLabel();
        jSeparator11 = new javax.swing.JSeparator();
        btRegistrarMalote = new javax.swing.JButton();
        jPanel12 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        listPagamentos = new javax.swing.JList();
        lblTotal34 = new javax.swing.JLabel();
        lblValorTotalPagamentos = new javax.swing.JLabel();
        jPanel14 = new javax.swing.JPanel();
        rbTipoSangria = new javax.swing.JRadioButton();
        rbTipoPagamento = new javax.swing.JRadioButton();

        setBackground(new java.awt.Color(255, 255, 255));
        setClosable(true);
        setMaximizable(true);
        setResizable(true);
        setFrameIcon(null);
        setMinimumSize(new java.awt.Dimension(829, 683));

        tabPrincipal.setBackground(new java.awt.Color(255, 255, 255));
        tabPrincipal.setEnabled(false);
        tabPrincipal.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N

        abaCaixa.setBackground(new java.awt.Color(255, 255, 255));

        pCabecalho.setMinimumSize(new java.awt.Dimension(778, 60));
        pCabecalho.setPreferredSize(new java.awt.Dimension(778, 60));

        lblDataAbertura.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        lblDataAbertura.setForeground(new java.awt.Color(102, 102, 102));
        lblDataAbertura.setText("Data de Abertura:");

        lblNome.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        lblNome.setForeground(new java.awt.Color(102, 102, 102));
        lblNome.setText("Nome:");

        lblUsername.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        lblUsername.setForeground(new java.awt.Color(102, 102, 102));
        lblUsername.setText("Username:");

        lblDataFechamento.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        lblDataFechamento.setForeground(new java.awt.Color(102, 102, 102));
        lblDataFechamento.setText("Data de Fechamento:");

        lblDataAbertura1.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        lblDataAbertura1.setForeground(new java.awt.Color(102, 102, 102));
        lblDataAbertura1.setText("Turno:");

        lblDataFechamento1.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        lblDataFechamento1.setForeground(new java.awt.Color(102, 102, 102));
        lblDataFechamento1.setText("Status do Caixa:");

        txtNome.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        txtNome.setForeground(new java.awt.Color(51, 51, 51));
        txtNome.setText("aaa");

        txtUsername.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        txtUsername.setForeground(new java.awt.Color(51, 51, 51));
        txtUsername.setText("aaa");

        txtDataAbertura.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        txtDataAbertura.setForeground(new java.awt.Color(51, 51, 51));
        txtDataAbertura.setText("aaa");

        txtDataFechamento.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        txtDataFechamento.setForeground(new java.awt.Color(51, 51, 51));
        txtDataFechamento.setText("aaa");

        txtTurno.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        txtTurno.setForeground(new java.awt.Color(51, 51, 51));
        txtTurno.setText("aaa");

        txtStatus.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        txtStatus.setForeground(new java.awt.Color(51, 51, 51));
        txtStatus.setText("aaa");

        javax.swing.GroupLayout pCabecalhoLayout = new javax.swing.GroupLayout(pCabecalho);
        pCabecalho.setLayout(pCabecalhoLayout);
        pCabecalhoLayout.setHorizontalGroup(
            pCabecalhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pCabecalhoLayout.createSequentialGroup()
                .addGroup(pCabecalhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pCabecalhoLayout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(lblUsername)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtUsername))
                    .addGroup(pCabecalhoLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(lblNome)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtNome)))
                .addGap(80, 80, 80)
                .addGroup(pCabecalhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblDataFechamento1)
                    .addGroup(pCabecalhoLayout.createSequentialGroup()
                        .addComponent(lblDataAbertura1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtTurno)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(txtStatus)
                .addGap(85, 85, 85)
                .addGroup(pCabecalhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pCabecalhoLayout.createSequentialGroup()
                        .addComponent(lblDataFechamento)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtDataFechamento))
                    .addGroup(pCabecalhoLayout.createSequentialGroup()
                        .addComponent(lblDataAbertura)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtDataAbertura)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pCabecalhoLayout.setVerticalGroup(
            pCabecalhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pCabecalhoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pCabecalhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pCabecalhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lblDataAbertura1)
                        .addComponent(txtTurno))
                    .addGroup(pCabecalhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lblNome)
                        .addComponent(txtNome)
                        .addComponent(lblDataAbertura)
                        .addComponent(txtDataAbertura)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pCabecalhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pCabecalhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lblDataFechamento)
                        .addComponent(txtDataFechamento))
                    .addGroup(pCabecalhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lblDataFechamento1)
                        .addComponent(txtStatus))
                    .addGroup(pCabecalhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lblUsername)
                        .addComponent(txtUsername)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pComposicao.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
        pComposicao.setMinimumSize(new java.awt.Dimension(778, 338));
        pComposicao.setPreferredSize(new java.awt.Dimension(778, 338));

        jLabel25.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel25.setForeground(new java.awt.Color(102, 102, 102));
        jLabel25.setText("Moeda");

        jLabel26.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel26.setForeground(new java.awt.Color(102, 102, 102));
        jLabel26.setText("Quantidade");

        jLabel27.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel27.setForeground(new java.awt.Color(102, 102, 102));
        jLabel27.setText("Valor");

        jLabel28.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel28.setForeground(new java.awt.Color(102, 102, 102));
        jLabel28.setText("Cedula");

        jLabel29.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel29.setForeground(new java.awt.Color(102, 102, 102));
        jLabel29.setText("Quantidade");

        jLabel30.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel30.setForeground(new java.awt.Color(102, 102, 102));
        jLabel30.setText("Valor");

        jLabel31.setFont(new java.awt.Font("Calibri", 2, 14)); // NOI18N
        jLabel31.setForeground(new java.awt.Color(102, 102, 102));
        jLabel31.setText("Valor da Composição: ");

        lblValorTotalComposicaoCaixa.setFont(new java.awt.Font("Calibri", 2, 14)); // NOI18N
        lblValorTotalComposicaoCaixa.setForeground(new java.awt.Color(51, 51, 51));
        lblValorTotalComposicaoCaixa.setText("R$ 0,00");

        jSeparator1.setRequestFocusEnabled(false);

        jPanel7.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
        jPanel7.setMaximumSize(new java.awt.Dimension(293, 242));
        jPanel7.setMinimumSize(new java.awt.Dimension(293, 242));

        txtQ100.setColumns(15);
        txtQ100.setForeground(new java.awt.Color(51, 51, 51));
        txtQ100.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtQ100.setText("0");
        txtQ100.setToolTipText("Digite a Quantidade!");
        txtQ100.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtQ100.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtQ100.setEnabled(false);
        txtQ100.setMaximumSize(new java.awt.Dimension(85, 21));
        txtQ100.setMinimumSize(new java.awt.Dimension(85, 21));

        txtQ050.setColumns(15);
        txtQ050.setForeground(new java.awt.Color(51, 51, 51));
        txtQ050.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtQ050.setText("0");
        txtQ050.setToolTipText("Digite a Quantidade!");
        txtQ050.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtQ050.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtQ050.setEnabled(false);
        txtQ050.setMaximumSize(new java.awt.Dimension(85, 21));
        txtQ050.setMinimumSize(new java.awt.Dimension(85, 21));

        txtQ025.setColumns(15);
        txtQ025.setForeground(new java.awt.Color(51, 51, 51));
        txtQ025.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtQ025.setText("0");
        txtQ025.setToolTipText("Digite a Quantidade!");
        txtQ025.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtQ025.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtQ025.setEnabled(false);
        txtQ025.setMaximumSize(new java.awt.Dimension(85, 21));
        txtQ025.setMinimumSize(new java.awt.Dimension(85, 21));

        txtQ010.setColumns(15);
        txtQ010.setForeground(new java.awt.Color(51, 51, 51));
        txtQ010.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtQ010.setText("0");
        txtQ010.setToolTipText("Digite a Quantidade!");
        txtQ010.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtQ010.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtQ010.setEnabled(false);
        txtQ010.setMaximumSize(new java.awt.Dimension(85, 21));
        txtQ010.setMinimumSize(new java.awt.Dimension(85, 21));

        txtQ005.setColumns(15);
        txtQ005.setForeground(new java.awt.Color(51, 51, 51));
        txtQ005.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtQ005.setText("0");
        txtQ005.setToolTipText("Digite a Quantidade!");
        txtQ005.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtQ005.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtQ005.setEnabled(false);
        txtQ005.setMaximumSize(new java.awt.Dimension(85, 21));
        txtQ005.setMinimumSize(new java.awt.Dimension(85, 21));

        txtQ001.setColumns(15);
        txtQ001.setForeground(new java.awt.Color(51, 51, 51));
        txtQ001.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtQ001.setText("0");
        txtQ001.setToolTipText("Digite a Quantidade!");
        txtQ001.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtQ001.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtQ001.setEnabled(false);
        txtQ001.setMaximumSize(new java.awt.Dimension(85, 21));
        txtQ001.setMinimumSize(new java.awt.Dimension(85, 21));

        jLabel1.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel1.setForeground(new java.awt.Color(102, 102, 102));
        jLabel1.setText("R$ 0,01");
        jLabel1.setRequestFocusEnabled(false);

        jLabel2.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel2.setForeground(new java.awt.Color(102, 102, 102));
        jLabel2.setText("R$ 0,05");
        jLabel2.setRequestFocusEnabled(false);

        jLabel3.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel3.setForeground(new java.awt.Color(102, 102, 102));
        jLabel3.setText("R$ 0,10");
        jLabel3.setRequestFocusEnabled(false);

        jLabel4.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel4.setForeground(new java.awt.Color(102, 102, 102));
        jLabel4.setText("R$ 0,25");
        jLabel4.setRequestFocusEnabled(false);

        jLabel5.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel5.setForeground(new java.awt.Color(102, 102, 102));
        jLabel5.setText("R$ 0,50");
        jLabel5.setRequestFocusEnabled(false);

        jLabel6.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel6.setForeground(new java.awt.Color(102, 102, 102));
        jLabel6.setText("R$ 1,00");
        jLabel6.setRequestFocusEnabled(false);

        lblValor001.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblValor001.setForeground(new java.awt.Color(255, 102, 51));
        lblValor001.setText("R$ 0,00");
        lblValor001.setRequestFocusEnabled(false);

        lblValor005.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblValor005.setForeground(new java.awt.Color(255, 102, 51));
        lblValor005.setText("R$ 0,00");
        lblValor005.setRequestFocusEnabled(false);

        lblValor010.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblValor010.setForeground(new java.awt.Color(255, 102, 51));
        lblValor010.setText("R$ 0,00");
        lblValor010.setRequestFocusEnabled(false);

        lblValor025.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblValor025.setForeground(new java.awt.Color(255, 102, 51));
        lblValor025.setText("R$ 0,00");
        lblValor025.setRequestFocusEnabled(false);

        lblValor050.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblValor050.setForeground(new java.awt.Color(255, 102, 51));
        lblValor050.setText("R$ 0,00");
        lblValor050.setRequestFocusEnabled(false);

        lblValor100.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblValor100.setForeground(new java.awt.Color(255, 102, 51));
        lblValor100.setText("R$ 0,00");
        lblValor100.setRequestFocusEnabled(false);

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1)
                    .addComponent(jLabel2)
                    .addComponent(jLabel3)
                    .addComponent(jLabel4)
                    .addComponent(jLabel5)
                    .addComponent(jLabel6))
                .addGap(18, 18, 18)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtQ001, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtQ005, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtQ010, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtQ025, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtQ050, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtQ100, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblValor005, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(lblValor010, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(lblValor025, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(lblValor050, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(lblValor100, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(lblValor001, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtQ001, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblValor001, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtQ005, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblValor005, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblValor010, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtQ010, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblValor025, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtQ025, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtQ050, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblValor050, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtQ100, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblValor100, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel8.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
        jPanel8.setMaximumSize(new java.awt.Dimension(293, 242));
        jPanel8.setMinimumSize(new java.awt.Dimension(293, 242));
        jPanel8.setPreferredSize(new java.awt.Dimension(293, 242));

        txtQ10000.setColumns(15);
        txtQ10000.setForeground(new java.awt.Color(51, 51, 51));
        txtQ10000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtQ10000.setText("0");
        txtQ10000.setToolTipText("Digite a Quantidade!");
        txtQ10000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtQ10000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtQ10000.setEnabled(false);
        txtQ10000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtQ10000.setMinimumSize(new java.awt.Dimension(85, 21));

        txtQ5000.setColumns(15);
        txtQ5000.setForeground(new java.awt.Color(51, 51, 51));
        txtQ5000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtQ5000.setText("0");
        txtQ5000.setToolTipText("Digite a Quantidade!");
        txtQ5000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtQ5000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtQ5000.setEnabled(false);
        txtQ5000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtQ5000.setMinimumSize(new java.awt.Dimension(85, 21));

        txtQ2000.setColumns(15);
        txtQ2000.setForeground(new java.awt.Color(51, 51, 51));
        txtQ2000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtQ2000.setText("0");
        txtQ2000.setToolTipText("Digite a Quantidade!");
        txtQ2000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtQ2000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtQ2000.setEnabled(false);
        txtQ2000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtQ2000.setMinimumSize(new java.awt.Dimension(85, 21));

        txtQ1000.setColumns(15);
        txtQ1000.setForeground(new java.awt.Color(51, 51, 51));
        txtQ1000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtQ1000.setText("0");
        txtQ1000.setToolTipText("Digite a Quantidade!");
        txtQ1000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtQ1000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtQ1000.setEnabled(false);
        txtQ1000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtQ1000.setMinimumSize(new java.awt.Dimension(85, 21));

        txtQ500.setColumns(15);
        txtQ500.setForeground(new java.awt.Color(51, 51, 51));
        txtQ500.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtQ500.setText("0");
        txtQ500.setToolTipText("Digite a Quantidade!");
        txtQ500.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtQ500.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtQ500.setEnabled(false);
        txtQ500.setMaximumSize(new java.awt.Dimension(85, 21));
        txtQ500.setMinimumSize(new java.awt.Dimension(85, 21));

        txtQ200.setColumns(15);
        txtQ200.setForeground(new java.awt.Color(51, 51, 51));
        txtQ200.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtQ200.setText("0");
        txtQ200.setToolTipText("Digite a Quantidade!");
        txtQ200.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtQ200.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtQ200.setEnabled(false);
        txtQ200.setMaximumSize(new java.awt.Dimension(85, 21));
        txtQ200.setMinimumSize(new java.awt.Dimension(85, 21));

        jLabel7.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel7.setForeground(new java.awt.Color(102, 102, 102));
        jLabel7.setText("R$ 2,00");
        jLabel7.setRequestFocusEnabled(false);

        jLabel8.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel8.setForeground(new java.awt.Color(102, 102, 102));
        jLabel8.setText("R$ 5,00");
        jLabel8.setRequestFocusEnabled(false);

        jLabel9.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel9.setForeground(new java.awt.Color(102, 102, 102));
        jLabel9.setText("R$ 10,00");
        jLabel9.setRequestFocusEnabled(false);

        jLabel10.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel10.setForeground(new java.awt.Color(102, 102, 102));
        jLabel10.setText("R$ 20,00");
        jLabel10.setRequestFocusEnabled(false);

        jLabel11.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel11.setForeground(new java.awt.Color(102, 102, 102));
        jLabel11.setText("R$ 50,00");
        jLabel11.setRequestFocusEnabled(false);

        jLabel12.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel12.setForeground(new java.awt.Color(102, 102, 102));
        jLabel12.setText("R$ 100,00");
        jLabel12.setRequestFocusEnabled(false);

        lblValor200.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblValor200.setForeground(new java.awt.Color(255, 102, 51));
        lblValor200.setText("R$ 0,00");
        lblValor200.setRequestFocusEnabled(false);

        lblValor500.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblValor500.setForeground(new java.awt.Color(255, 102, 51));
        lblValor500.setText("R$ 0,00");
        lblValor500.setRequestFocusEnabled(false);

        lblValor1000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblValor1000.setForeground(new java.awt.Color(255, 102, 51));
        lblValor1000.setText("R$ 0,00");
        lblValor1000.setRequestFocusEnabled(false);

        lblValor2000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblValor2000.setForeground(new java.awt.Color(255, 102, 51));
        lblValor2000.setText("R$ 0,00");
        lblValor2000.setRequestFocusEnabled(false);

        lblValor5000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblValor5000.setForeground(new java.awt.Color(255, 102, 51));
        lblValor5000.setText("R$ 0,00");
        lblValor5000.setRequestFocusEnabled(false);

        lblValor10000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblValor10000.setForeground(new java.awt.Color(255, 102, 51));
        lblValor10000.setText("R$ 0,00");
        lblValor10000.setRequestFocusEnabled(false);

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel7)
                    .addComponent(jLabel8)
                    .addComponent(jLabel9)
                    .addComponent(jLabel10)
                    .addComponent(jLabel11)
                    .addComponent(jLabel12))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtQ200, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtQ500, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtQ1000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtQ2000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtQ5000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtQ10000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblValor200, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(lblValor500, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(lblValor1000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(lblValor2000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(lblValor5000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(lblValor10000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtQ200, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblValor200, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtQ500, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblValor500, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtQ1000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblValor1000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtQ2000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblValor2000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtQ5000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblValor5000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtQ10000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblValor10000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(13, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout pComposicaoLayout = new javax.swing.GroupLayout(pComposicao);
        pComposicao.setLayout(pComposicaoLayout);
        pComposicaoLayout.setHorizontalGroup(
            pComposicaoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pComposicaoLayout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addGroup(pComposicaoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pComposicaoLayout.createSequentialGroup()
                        .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, 476, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pComposicaoLayout.createSequentialGroup()
                        .addGroup(pComposicaoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 574, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pComposicaoLayout.createSequentialGroup()
                                .addComponent(jLabel31)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(lblValorTotalComposicaoCaixa))
                            .addComponent(jSeparator2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 574, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pComposicaoLayout.createSequentialGroup()
                                .addGap(13, 13, 13)
                                .addComponent(jLabel25)
                                .addGap(27, 27, 27)
                                .addComponent(jLabel26)
                                .addGap(44, 44, 44)
                                .addComponent(jLabel27)
                                .addGap(57, 57, 57)
                                .addComponent(jLabel28)
                                .addGap(28, 28, 28)
                                .addComponent(jLabel29)
                                .addGap(46, 46, 46)
                                .addComponent(jLabel30)))
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addGap(204, 204, 204))
        );
        pComposicaoLayout.setVerticalGroup(
            pComposicaoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pComposicaoLayout.createSequentialGroup()
                .addGap(12, 12, 12)
                .addGroup(pComposicaoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false)
                    .addComponent(jLabel25)
                    .addComponent(jLabel26)
                    .addComponent(jLabel27)
                    .addComponent(jLabel28)
                    .addComponent(jLabel29)
                    .addComponent(jLabel30))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 6, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pComposicaoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pComposicaoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblValorTotalComposicaoCaixa, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel31))
                .addContainerGap())
        );

        pRodape.setMinimumSize(new java.awt.Dimension(930, 72));
        pRodape.setPreferredSize(new java.awt.Dimension(930, 72));

        lblNome1.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        lblNome1.setForeground(new java.awt.Color(102, 102, 102));
        lblNome1.setText("Saldo anterior");

        txtNome1.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
        txtNome1.setForeground(new java.awt.Color(51, 51, 51));

        txtUsername1.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
        txtUsername1.setForeground(new java.awt.Color(51, 51, 51));

        txtDataAbertura1.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
        txtDataAbertura1.setForeground(new java.awt.Color(51, 51, 51));

        txtDataFechamento1.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
        txtDataFechamento1.setForeground(new java.awt.Color(51, 51, 51));

        txtTurno1.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
        txtTurno1.setForeground(new java.awt.Color(51, 51, 51));

        ftfSaldoAnterior.setEditable(false);
        ftfSaldoAnterior.setForeground(new java.awt.Color(51, 51, 51));
        ftfSaldoAnterior.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("¤ #,##0.00"))));
        ftfSaldoAnterior.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        ftfSaldoAnterior.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        ftfSaldoAnterior.setMaximumSize(new java.awt.Dimension(144, 30));
        ftfSaldoAnterior.setMinimumSize(new java.awt.Dimension(144, 30));
        ftfSaldoAnterior.setPreferredSize(new java.awt.Dimension(144, 30));
        ftfSaldoAnterior.setValue(0.00);

        ftfTotalEntradas.setEditable(false);
        ftfTotalEntradas.setForeground(new java.awt.Color(51, 51, 51));
        ftfTotalEntradas.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("¤ #,##0.00"))));
        ftfTotalEntradas.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        ftfTotalEntradas.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        ftfTotalEntradas.setMaximumSize(new java.awt.Dimension(144, 30));
        ftfTotalEntradas.setMinimumSize(new java.awt.Dimension(144, 30));
        ftfTotalEntradas.setPreferredSize(new java.awt.Dimension(144, 30));
        ftfTotalEntradas.setValue(0.00);

        lblNome3.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        lblNome3.setForeground(new java.awt.Color(102, 102, 102));
        lblNome3.setText("Total Entradas");

        ftfTotalSaidas.setEditable(false);
        ftfTotalSaidas.setForeground(new java.awt.Color(51, 51, 51));
        ftfTotalSaidas.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("¤ #,##0.00"))));
        ftfTotalSaidas.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        ftfTotalSaidas.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        ftfTotalSaidas.setMaximumSize(new java.awt.Dimension(144, 30));
        ftfTotalSaidas.setMinimumSize(new java.awt.Dimension(144, 30));
        ftfTotalSaidas.setPreferredSize(new java.awt.Dimension(144, 30));
        ftfTotalSaidas.setValue(0.00);

        lblNome4.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        lblNome4.setForeground(new java.awt.Color(102, 102, 102));
        lblNome4.setText("Total Saídas");

        lblNome6.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        lblNome6.setForeground(new java.awt.Color(102, 102, 102));
        lblNome6.setText("Saldo Total");

        ftfSaldoTotal.setEditable(false);
        ftfSaldoTotal.setForeground(new java.awt.Color(51, 51, 51));
        ftfSaldoTotal.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("¤ #,##0.00"))));
        ftfSaldoTotal.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        ftfSaldoTotal.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        ftfSaldoTotal.setMaximumSize(new java.awt.Dimension(144, 30));
        ftfSaldoTotal.setMinimumSize(new java.awt.Dimension(144, 30));
        ftfSaldoTotal.setPreferredSize(new java.awt.Dimension(144, 30));
        ftfSaldoTotal.setValue(0.00);

        ftfTotalPagamento.setEditable(false);
        ftfTotalPagamento.setForeground(new java.awt.Color(51, 51, 51));
        ftfTotalPagamento.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("¤ #,##0.00"))));
        ftfTotalPagamento.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        ftfTotalPagamento.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        ftfTotalPagamento.setMaximumSize(new java.awt.Dimension(144, 30));
        ftfTotalPagamento.setMinimumSize(new java.awt.Dimension(144, 30));
        ftfTotalPagamento.setPreferredSize(new java.awt.Dimension(144, 30));
        ftfTotalPagamento.setValue(0.00);

        lblNome2.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        lblNome2.setForeground(new java.awt.Color(102, 102, 102));
        lblNome2.setText("Total Pagamentos");

        javax.swing.GroupLayout pRodapeLayout = new javax.swing.GroupLayout(pRodape);
        pRodape.setLayout(pRodapeLayout);
        pRodapeLayout.setHorizontalGroup(
            pRodapeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pRodapeLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(txtTurno1)
                .addGap(210, 210, 210))
            .addGroup(pRodapeLayout.createSequentialGroup()
                .addGroup(pRodapeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pRodapeLayout.createSequentialGroup()
                        .addGap(78, 78, 78)
                        .addComponent(txtUsername1))
                    .addGroup(pRodapeLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(pRodapeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblNome1)
                            .addComponent(ftfSaldoAnterior, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pRodapeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblNome4)
                            .addComponent(ftfTotalSaidas, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pRodapeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(ftfTotalEntradas, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblNome3))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pRodapeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblNome2)
                            .addComponent(ftfTotalPagamento, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pRodapeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(ftfSaldoTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblNome6, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(159, 159, 159)
                        .addComponent(txtNome1)
                        .addGap(316, 316, 316)
                        .addComponent(txtDataAbertura1)
                        .addGap(203, 203, 203)
                        .addComponent(txtDataFechamento1)))
                .addContainerGap())
        );
        pRodapeLayout.setVerticalGroup(
            pRodapeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pRodapeLayout.createSequentialGroup()
                .addGap(5, 5, 5)
                .addGroup(pRodapeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pRodapeLayout.createSequentialGroup()
                        .addGroup(pRodapeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtDataAbertura1)
                            .addComponent(txtDataFechamento1))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtNome1))
                    .addGroup(pRodapeLayout.createSequentialGroup()
                        .addGroup(pRodapeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblNome1)
                            .addComponent(lblNome4)
                            .addComponent(lblNome3)
                            .addComponent(lblNome2)
                            .addComponent(lblNome6))
                        .addGap(1, 1, 1)
                        .addGroup(pRodapeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(pRodapeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(ftfSaldoAnterior, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(ftfTotalSaidas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(ftfTotalEntradas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(ftfTotalPagamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(ftfSaldoTotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(54, 54, 54)
                        .addGroup(pRodapeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtUsername1)
                            .addComponent(txtTurno1)))))
        );

        btAbrirCaixa.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        btAbrirCaixa.setForeground(new java.awt.Color(51, 51, 51));
        btAbrirCaixa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/scc/Imagens/Safe-opened-icon.png"))); // NOI18N
        btAbrirCaixa.setText("Abrir Caixa");
        btAbrirCaixa.setMargin(new java.awt.Insets(2, 2, 2, 2));
        btAbrirCaixa.setMaximumSize(new java.awt.Dimension(108, 30));
        btAbrirCaixa.setMinimumSize(new java.awt.Dimension(108, 30));
        btAbrirCaixa.setPreferredSize(new java.awt.Dimension(108, 30));
        btAbrirCaixa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btAbrirCaixaActionPerformed(evt);
            }
        });

        btFecharCaixa.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        btFecharCaixa.setForeground(new java.awt.Color(51, 51, 51));
        btFecharCaixa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/scc/Imagens/Safe-closed-icon.png"))); // NOI18N
        btFecharCaixa.setText("Fechar Caixa");
        btFecharCaixa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btFecharCaixaActionPerformed(evt);
            }
        });

        lblTotal27.setFont(new java.awt.Font("Calibri", 1, 18)); // NOI18N
        lblTotal27.setForeground(new java.awt.Color(74, 139, 245));
        lblTotal27.setText("Caixa");
        lblTotal27.setFocusable(false);
        lblTotal27.setRequestFocusEnabled(false);

        btReimprimirRecibo.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        btReimprimirRecibo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/scc/Imagens/Devices-printer-icon.png"))); // NOI18N
        btReimprimirRecibo.setText("Reimprimir Recibo");
        btReimprimirRecibo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btReimprimirReciboActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout abaCaixaLayout = new javax.swing.GroupLayout(abaCaixa);
        abaCaixa.setLayout(abaCaixaLayout);
        abaCaixaLayout.setHorizontalGroup(
            abaCaixaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(abaCaixaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(abaCaixaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(pCabecalho, javax.swing.GroupLayout.DEFAULT_SIZE, 937, Short.MAX_VALUE)
                    .addComponent(pComposicao, javax.swing.GroupLayout.DEFAULT_SIZE, 937, Short.MAX_VALUE)
                    .addComponent(pRodape, javax.swing.GroupLayout.DEFAULT_SIZE, 937, Short.MAX_VALUE)
                    .addComponent(jSeparator16)
                    .addGroup(abaCaixaLayout.createSequentialGroup()
                        .addGroup(abaCaixaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblTotal27)
                            .addGroup(abaCaixaLayout.createSequentialGroup()
                                .addComponent(btAbrirCaixa, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(btFecharCaixa)
                                .addGap(156, 156, 156)
                                .addComponent(btReimprimirRecibo)))
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );

        abaCaixaLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {btAbrirCaixa, btFecharCaixa});

        abaCaixaLayout.setVerticalGroup(
            abaCaixaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(abaCaixaLayout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(lblTotal27)
                .addGap(1, 1, 1)
                .addComponent(jSeparator16, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pCabecalho, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pComposicao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pRodape, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(abaCaixaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(btFecharCaixa)
                    .addComponent(btAbrirCaixa, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btReimprimirRecibo))
                .addContainerGap(130, Short.MAX_VALUE))
        );

        abaCaixaLayout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {btAbrirCaixa, btFecharCaixa, btReimprimirRecibo});

        tabPrincipal.addTab("Caixa", abaCaixa);

        abaLancamento.setBackground(new java.awt.Color(255, 255, 255));

        tabLancamento.setBackground(new java.awt.Color(255, 255, 255));
        tabLancamento.setTabPlacement(javax.swing.JTabbedPane.BOTTOM);
        tabLancamento.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N

        jpRetiradaDeTroco.setBackground(new java.awt.Color(255, 255, 255));
        jpRetiradaDeTroco.setOpaque(false);

        pSuperior.setPreferredSize(new java.awt.Dimension(475, 60));

        cbTipoLancamento.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        cbTipoLancamento.setForeground(new java.awt.Color(51, 51, 51));
        cbTipoLancamento.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Saída de Fundo de Troco", "Saída para Papa-Fila", "Saída de Troco" }));
        cbTipoLancamento.setMinimumSize(new java.awt.Dimension(144, 25));
        cbTipoLancamento.setPreferredSize(new java.awt.Dimension(144, 25));

        cbPraca.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        cbPraca.setForeground(new java.awt.Color(51, 51, 51));
        cbPraca.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "PN1", "PA1", "PA2" }));

        lblTotal1.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        lblTotal1.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal1.setText("Tipo de Lançamento:");

        lblTotal2.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        lblTotal2.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal2.setText("Praça:");

        javax.swing.GroupLayout pSuperiorLayout = new javax.swing.GroupLayout(pSuperior);
        pSuperior.setLayout(pSuperiorLayout);
        pSuperiorLayout.setHorizontalGroup(
            pSuperiorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pSuperiorLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pSuperiorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(cbTipoLancamento, javax.swing.GroupLayout.PREFERRED_SIZE, 189, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblTotal1))
                .addGap(18, 18, 18)
                .addGroup(pSuperiorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblTotal2)
                    .addComponent(cbPraca, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pSuperiorLayout.setVerticalGroup(
            pSuperiorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pSuperiorLayout.createSequentialGroup()
                .addGap(5, 5, 5)
                .addGroup(pSuperiorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblTotal1)
                    .addComponent(lblTotal2))
                .addGap(1, 1, 1)
                .addGroup(pSuperiorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cbTipoLancamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbPraca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(13, Short.MAX_VALUE))
        );

        pSuperiorLayout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {cbPraca, cbTipoLancamento});

        txtL001.setColumns(15);
        txtL001.setForeground(new java.awt.Color(51, 51, 51));
        txtL001.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtL001.setText("0");
        txtL001.setToolTipText("Digite a Quantidade!");
        txtL001.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtL001.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtL001.setMaximumSize(new java.awt.Dimension(85, 21));
        txtL001.setMinimumSize(new java.awt.Dimension(85, 21));
        txtL001.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtManipuladorLimpaQuandoZera(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtManipuladorZeraQuandoVazio(evt);
            }
        });
        txtL001.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                eventKeyReleasedCampoTxtLancamento(evt);
            }
        });

        txtL005.setColumns(15);
        txtL005.setForeground(new java.awt.Color(51, 51, 51));
        txtL005.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtL005.setText("0");
        txtL005.setToolTipText("Digite a Quantidade!");
        txtL005.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtL005.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtL005.setMaximumSize(new java.awt.Dimension(85, 21));
        txtL005.setMinimumSize(new java.awt.Dimension(85, 21));
        txtL005.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtManipuladorLimpaQuandoZera(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtManipuladorZeraQuandoVazio(evt);
            }
        });
        txtL005.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                eventKeyReleasedCampoTxtLancamento(evt);
            }
        });

        txtL010.setColumns(15);
        txtL010.setForeground(new java.awt.Color(51, 51, 51));
        txtL010.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtL010.setText("0");
        txtL010.setToolTipText("Digite a Quantidade!");
        txtL010.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtL010.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtL010.setMaximumSize(new java.awt.Dimension(85, 21));
        txtL010.setMinimumSize(new java.awt.Dimension(85, 21));
        txtL010.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtManipuladorLimpaQuandoZera(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtManipuladorZeraQuandoVazio(evt);
            }
        });
        txtL010.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                eventKeyReleasedCampoTxtLancamento(evt);
            }
        });

        txtL025.setColumns(15);
        txtL025.setForeground(new java.awt.Color(51, 51, 51));
        txtL025.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtL025.setText("0");
        txtL025.setToolTipText("Digite a Quantidade!");
        txtL025.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtL025.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtL025.setMaximumSize(new java.awt.Dimension(85, 21));
        txtL025.setMinimumSize(new java.awt.Dimension(85, 21));
        txtL025.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtManipuladorLimpaQuandoZera(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtManipuladorZeraQuandoVazio(evt);
            }
        });
        txtL025.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                eventKeyReleasedCampoTxtLancamento(evt);
            }
        });

        txtL100.setColumns(15);
        txtL100.setForeground(new java.awt.Color(51, 51, 51));
        txtL100.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtL100.setText("0");
        txtL100.setToolTipText("Digite a Quantidade!");
        txtL100.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtL100.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtL100.setMaximumSize(new java.awt.Dimension(85, 21));
        txtL100.setMinimumSize(new java.awt.Dimension(85, 21));
        txtL100.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtManipuladorLimpaQuandoZera(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtManipuladorZeraQuandoVazio(evt);
            }
        });
        txtL100.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                eventKeyReleasedCampoTxtLancamento(evt);
            }
        });

        txtL050.setColumns(15);
        txtL050.setForeground(new java.awt.Color(51, 51, 51));
        txtL050.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtL050.setText("0");
        txtL050.setToolTipText("Digite a Quantidade!");
        txtL050.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtL050.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtL050.setMaximumSize(new java.awt.Dimension(85, 21));
        txtL050.setMinimumSize(new java.awt.Dimension(85, 21));
        txtL050.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtManipuladorLimpaQuandoZera(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtManipuladorZeraQuandoVazio(evt);
            }
        });
        txtL050.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                eventKeyReleasedCampoTxtLancamento(evt);
            }
        });

        txtL10000.setColumns(15);
        txtL10000.setForeground(new java.awt.Color(51, 51, 51));
        txtL10000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtL10000.setText("0");
        txtL10000.setToolTipText("Digite a Quantidade!");
        txtL10000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtL10000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtL10000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtL10000.setMinimumSize(new java.awt.Dimension(85, 21));
        txtL10000.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtManipuladorLimpaQuandoZera(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtManipuladorZeraQuandoVazio(evt);
            }
        });
        txtL10000.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                eventKeyReleasedCampoTxtLancamento(evt);
            }
        });

        txtL5000.setColumns(15);
        txtL5000.setForeground(new java.awt.Color(51, 51, 51));
        txtL5000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtL5000.setText("0");
        txtL5000.setToolTipText("Digite a Quantidade!");
        txtL5000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtL5000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtL5000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtL5000.setMinimumSize(new java.awt.Dimension(85, 21));
        txtL5000.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtManipuladorLimpaQuandoZera(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtManipuladorZeraQuandoVazio(evt);
            }
        });
        txtL5000.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                eventKeyReleasedCampoTxtLancamento(evt);
            }
        });

        txtL2000.setColumns(15);
        txtL2000.setForeground(new java.awt.Color(51, 51, 51));
        txtL2000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtL2000.setText("0");
        txtL2000.setToolTipText("Digite a Quantidade!");
        txtL2000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtL2000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtL2000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtL2000.setMinimumSize(new java.awt.Dimension(85, 21));
        txtL2000.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtManipuladorLimpaQuandoZera(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtManipuladorZeraQuandoVazio(evt);
            }
        });
        txtL2000.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                eventKeyReleasedCampoTxtLancamento(evt);
            }
        });

        txtL1000.setColumns(15);
        txtL1000.setForeground(new java.awt.Color(51, 51, 51));
        txtL1000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtL1000.setText("0");
        txtL1000.setToolTipText("Digite a Quantidade!");
        txtL1000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtL1000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtL1000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtL1000.setMinimumSize(new java.awt.Dimension(85, 21));
        txtL1000.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtManipuladorLimpaQuandoZera(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtManipuladorZeraQuandoVazio(evt);
            }
        });
        txtL1000.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                eventKeyReleasedCampoTxtLancamento(evt);
            }
        });

        txtL500.setColumns(15);
        txtL500.setForeground(new java.awt.Color(51, 51, 51));
        txtL500.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtL500.setText("0");
        txtL500.setToolTipText("Digite a Quantidade!");
        txtL500.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtL500.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtL500.setMaximumSize(new java.awt.Dimension(85, 21));
        txtL500.setMinimumSize(new java.awt.Dimension(85, 21));
        txtL500.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtManipuladorLimpaQuandoZera(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtManipuladorZeraQuandoVazio(evt);
            }
        });
        txtL500.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                eventKeyReleasedCampoTxtLancamento(evt);
            }
        });

        txtL200.setColumns(15);
        txtL200.setForeground(new java.awt.Color(51, 51, 51));
        txtL200.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtL200.setText("0");
        txtL200.setToolTipText("Digite a Quantidade!");
        txtL200.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtL200.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtL200.setMaximumSize(new java.awt.Dimension(85, 21));
        txtL200.setMinimumSize(new java.awt.Dimension(85, 21));
        txtL200.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtManipuladorLimpaQuandoZera(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtManipuladorZeraQuandoVazio(evt);
            }
        });
        txtL200.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                eventKeyReleasedCampoTxtLancamento(evt);
            }
        });

        jLabel14.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel14.setForeground(new java.awt.Color(102, 102, 102));
        jLabel14.setText("R$ 0,01");
        jLabel14.setRequestFocusEnabled(false);

        lblL001.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblL001.setForeground(new java.awt.Color(255, 102, 51));
        lblL001.setText("R$ 0,00");
        lblL001.setRequestFocusEnabled(false);

        jLabel15.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel15.setForeground(new java.awt.Color(102, 102, 102));
        jLabel15.setText("R$ 0,05");
        jLabel15.setRequestFocusEnabled(false);

        lblL005.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblL005.setForeground(new java.awt.Color(255, 102, 51));
        lblL005.setText("R$ 0,00");
        lblL005.setRequestFocusEnabled(false);

        jLabel16.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel16.setForeground(new java.awt.Color(102, 102, 102));
        jLabel16.setText("R$ 0,10");
        jLabel16.setRequestFocusEnabled(false);

        lblL010.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblL010.setForeground(new java.awt.Color(255, 102, 51));
        lblL010.setText("R$ 0,00");
        lblL010.setRequestFocusEnabled(false);

        jLabel17.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel17.setForeground(new java.awt.Color(102, 102, 102));
        jLabel17.setText("R$ 0,25");
        jLabel17.setRequestFocusEnabled(false);

        lblL025.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblL025.setForeground(new java.awt.Color(255, 102, 51));
        lblL025.setText("R$ 0,00");
        lblL025.setRequestFocusEnabled(false);

        jLabel18.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel18.setForeground(new java.awt.Color(102, 102, 102));
        jLabel18.setText("R$ 0,50");
        jLabel18.setRequestFocusEnabled(false);

        lblL050.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblL050.setForeground(new java.awt.Color(255, 102, 51));
        lblL050.setText("R$ 0,00");
        lblL050.setRequestFocusEnabled(false);

        jLabel19.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel19.setForeground(new java.awt.Color(102, 102, 102));
        jLabel19.setText("R$ 1,00");
        jLabel19.setRequestFocusEnabled(false);

        lblL100.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblL100.setForeground(new java.awt.Color(255, 102, 51));
        lblL100.setText("R$ 0,00");
        lblL100.setRequestFocusEnabled(false);

        jLabel20.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel20.setForeground(new java.awt.Color(102, 102, 102));
        jLabel20.setText("R$ 2,00");
        jLabel20.setRequestFocusEnabled(false);

        jLabel21.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel21.setForeground(new java.awt.Color(102, 102, 102));
        jLabel21.setText("R$ 5,00");
        jLabel21.setRequestFocusEnabled(false);

        jLabel22.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel22.setForeground(new java.awt.Color(102, 102, 102));
        jLabel22.setText("R$ 10,00");
        jLabel22.setRequestFocusEnabled(false);

        jLabel23.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel23.setForeground(new java.awt.Color(102, 102, 102));
        jLabel23.setText("R$ 20,00");
        jLabel23.setRequestFocusEnabled(false);

        jLabel24.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel24.setForeground(new java.awt.Color(102, 102, 102));
        jLabel24.setText("R$ 50,00");
        jLabel24.setRequestFocusEnabled(false);

        jLabel32.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel32.setForeground(new java.awt.Color(102, 102, 102));
        jLabel32.setText("R$ 100,00");
        jLabel32.setRequestFocusEnabled(false);

        lblL10000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblL10000.setForeground(new java.awt.Color(255, 102, 51));
        lblL10000.setText("R$ 0,00");
        lblL10000.setRequestFocusEnabled(false);

        lblL5000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblL5000.setForeground(new java.awt.Color(255, 102, 51));
        lblL5000.setText("R$ 0,00");
        lblL5000.setRequestFocusEnabled(false);

        lblL2000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblL2000.setForeground(new java.awt.Color(255, 102, 51));
        lblL2000.setText("R$ 0,00");
        lblL2000.setRequestFocusEnabled(false);

        lblL1000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblL1000.setForeground(new java.awt.Color(255, 102, 51));
        lblL1000.setText("R$ 0,00");
        lblL1000.setRequestFocusEnabled(false);

        lblL500.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblL500.setForeground(new java.awt.Color(255, 102, 51));
        lblL500.setText("R$ 0,00");
        lblL500.setRequestFocusEnabled(false);

        lblL200.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblL200.setForeground(new java.awt.Color(255, 102, 51));
        lblL200.setText("R$ 0,00");
        lblL200.setRequestFocusEnabled(false);

        jLabel33.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel33.setForeground(new java.awt.Color(102, 102, 102));
        jLabel33.setText("Moeda");

        jLabel34.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel34.setForeground(new java.awt.Color(102, 102, 102));
        jLabel34.setText("Quantidade");

        jLabel35.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel35.setForeground(new java.awt.Color(102, 102, 102));
        jLabel35.setText("Valor");

        jLabel36.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel36.setForeground(new java.awt.Color(102, 102, 102));
        jLabel36.setText("Cedula");

        jLabel37.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel37.setForeground(new java.awt.Color(102, 102, 102));
        jLabel37.setText("Quantidade");

        jLabel38.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel38.setForeground(new java.awt.Color(102, 102, 102));
        jLabel38.setText("Valor");

        lblLimpaL.setFont(new java.awt.Font("Calibri", 2, 14)); // NOI18N
        lblLimpaL.setForeground(new java.awt.Color(102, 102, 102));
        lblLimpaL.setIcon(new javax.swing.ImageIcon(getClass().getResource("/scc/Imagens/draw_eraser.png"))); // NOI18N
        lblLimpaL.setText("Limpar");
        lblLimpaL.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        lblLimpaL.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblLimpaLMouseClicked(evt);
            }
        });

        lblTotal.setFont(new java.awt.Font("Calibri", 2, 14)); // NOI18N
        lblTotal.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal.setText("Valor da Composição:");
        lblTotal.setFocusable(false);
        lblTotal.setRequestFocusEnabled(false);

        lblValorComposicaoRetirada.setFont(new java.awt.Font("Calibri", 2, 14)); // NOI18N
        lblValorComposicaoRetirada.setForeground(new java.awt.Color(51, 51, 51));
        lblValorComposicaoRetirada.setText("R$ 0,00");
        lblValorComposicaoRetirada.setFocusable(false);
        lblValorComposicaoRetirada.setRequestFocusEnabled(false);

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel33)
                        .addGap(26, 26, 26)
                        .addComponent(jLabel34)
                        .addGap(47, 47, 47)
                        .addComponent(jLabel35)
                        .addGap(103, 103, 103)
                        .addComponent(jLabel36)
                        .addGap(33, 33, 33)
                        .addComponent(jLabel37)
                        .addGap(41, 41, 41)
                        .addComponent(jLabel38))
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
                            .addComponent(lblTotal)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(lblValorComposicaoRetirada)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(lblLimpaL))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel14)
                                .addComponent(jLabel15)
                                .addComponent(jLabel16)
                                .addComponent(jLabel17)
                                .addComponent(jLabel18)
                                .addComponent(jLabel19))
                            .addGap(18, 18, 18)
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(txtL001, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtL005, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtL010, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtL025, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtL050, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtL100, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(18, 18, 18)
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(lblL050, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 111, Short.MAX_VALUE)
                                .addComponent(lblL025, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblL010, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblL005, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblL001, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblL100, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGap(18, 18, 18)
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel20)
                                .addComponent(jLabel21)
                                .addComponent(jLabel22)
                                .addComponent(jLabel23)
                                .addComponent(jLabel24)
                                .addComponent(jLabel32))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(txtL200, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtL500, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtL1000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtL2000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtL5000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtL10000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(18, 18, 18)
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(lblL200, javax.swing.GroupLayout.DEFAULT_SIZE, 125, Short.MAX_VALUE)
                                .addComponent(lblL500, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblL1000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblL2000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblL5000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblL10000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                        .addComponent(jSeparator3, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jSeparator4, javax.swing.GroupLayout.Alignment.LEADING)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(13, 13, 13)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false)
                    .addComponent(jLabel33)
                    .addComponent(jLabel34)
                    .addComponent(jLabel35)
                    .addComponent(jLabel36)
                    .addComponent(jLabel37)
                    .addComponent(jLabel38))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtL200, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblL200, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtL500, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblL500, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtL1000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblL1000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtL2000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblL2000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtL5000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblL5000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel32, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtL10000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblL10000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtL001, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblL001, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtL005, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblL005, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblL010, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtL010, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblL025, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtL025, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtL050, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblL050, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtL100, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblL100, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblTotal)
                    .addComponent(lblValorComposicaoRetirada)
                    .addComponent(lblLimpaL))
                .addContainerGap())
        );

        lblTotal7.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        lblTotal7.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal7.setText("Observação:");

        textAreaObservacaoL.setColumns(20);
        textAreaObservacaoL.setDocument(new FixedLengthDocument(500));
        textAreaObservacaoL.setFont(new java.awt.Font("Tahoma", 0, 13)); // NOI18N
        textAreaObservacaoL.setForeground(new java.awt.Color(51, 51, 51));
        textAreaObservacaoL.setLineWrap(true);
        textAreaObservacaoL.setRows(5);
        textAreaObservacaoL.setWrapStyleWord(true);
        textAreaObservacaoL.setMaximumSize(new java.awt.Dimension(224, 68));
        textAreaObservacaoL.setMinimumSize(new java.awt.Dimension(224, 68));
        textAreaObservacaoL.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                textAreaObservacaoLKeyTyped(evt);
            }
        });
        jScrollPane2.setViewportView(textAreaObservacaoL);

        lblTotal8.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        lblTotal8.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal8.setText("500 caracteres.");

        lblTotal11.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        lblTotal11.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal11.setText("Restando:");

        lblRestante.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        lblRestante.setForeground(new java.awt.Color(102, 102, 102));
        lblRestante.setText("500");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblTotal7)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 496, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(jPanel2Layout.createSequentialGroup()
                            .addComponent(lblTotal8)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(lblTotal11)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(lblRestante))))
                .addGap(426, 426, 426))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(5, 5, 5)
                .addComponent(lblTotal7)
                .addGap(1, 1, 1)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(1, 1, 1)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblTotal8)
                    .addComponent(lblTotal11)
                    .addComponent(lblRestante))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        btRegistrarRetirada.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        btRegistrarRetirada.setForeground(new java.awt.Color(51, 51, 51));
        btRegistrarRetirada.setText("Registrar Retirada");
        btRegistrarRetirada.setMaximumSize(new java.awt.Dimension(99, 30));
        btRegistrarRetirada.setMinimumSize(new java.awt.Dimension(99, 30));
        btRegistrarRetirada.setPreferredSize(new java.awt.Dimension(99, 30));
        btRegistrarRetirada.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btRegistrarRetiradaActionPerformed(evt);
            }
        });

        lblTotal9.setFont(new java.awt.Font("Calibri", 1, 18)); // NOI18N
        lblTotal9.setForeground(new java.awt.Color(74, 139, 245));
        lblTotal9.setText("Retirada de Troco");
        lblTotal9.setFocusable(false);
        lblTotal9.setRequestFocusEnabled(false);

        javax.swing.GroupLayout jpRetiradaDeTrocoLayout = new javax.swing.GroupLayout(jpRetiradaDeTroco);
        jpRetiradaDeTroco.setLayout(jpRetiradaDeTrocoLayout);
        jpRetiradaDeTrocoLayout.setHorizontalGroup(
            jpRetiradaDeTrocoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpRetiradaDeTrocoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpRetiradaDeTrocoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jSeparator9)
                    .addComponent(pSuperior, javax.swing.GroupLayout.DEFAULT_SIZE, 932, Short.MAX_VALUE)
                    .addGroup(jpRetiradaDeTrocoLayout.createSequentialGroup()
                        .addGroup(jpRetiradaDeTrocoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblTotal9)
                            .addComponent(btRegistrarRetirada, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jpRetiradaDeTrocoLayout.setVerticalGroup(
            jpRetiradaDeTrocoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpRetiradaDeTrocoLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addComponent(lblTotal9)
                .addGap(1, 1, 1)
                .addComponent(jSeparator9, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pSuperior, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(btRegistrarRetirada, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(23, Short.MAX_VALUE))
        );

        tabLancamento.addTab("Retirada de Troco", jpRetiradaDeTroco);

        jpRetornoDeTroco.setBackground(new java.awt.Color(255, 255, 255));

        pCabecalhoRetorno.setPreferredSize(new java.awt.Dimension(567, 60));

        cbRetiradaDeTroco.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        cbRetiradaDeTroco.setForeground(new java.awt.Color(51, 51, 51));
        cbRetiradaDeTroco.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Selecione" }));
        cbRetiradaDeTroco.setMinimumSize(new java.awt.Dimension(144, 25));
        cbRetiradaDeTroco.setPreferredSize(new java.awt.Dimension(144, 25));
        cbRetiradaDeTroco.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cbRetiradaDeTrocoItemStateChanged(evt);
            }
        });

        lblTotal3.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        lblTotal3.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal3.setText("Retirada de Troco:");

        javax.swing.GroupLayout pCabecalhoRetornoLayout = new javax.swing.GroupLayout(pCabecalhoRetorno);
        pCabecalhoRetorno.setLayout(pCabecalhoRetornoLayout);
        pCabecalhoRetornoLayout.setHorizontalGroup(
            pCabecalhoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pCabecalhoRetornoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pCabecalhoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblTotal3)
                    .addComponent(cbRetiradaDeTroco, javax.swing.GroupLayout.PREFERRED_SIZE, 418, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pCabecalhoRetornoLayout.setVerticalGroup(
            pCabecalhoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pCabecalhoRetornoLayout.createSequentialGroup()
                .addGap(5, 5, 5)
                .addComponent(lblTotal3)
                .addGap(1, 1, 1)
                .addComponent(cbRetiradaDeTroco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(13, Short.MAX_VALUE))
        );

        txtRetorno001.setColumns(15);
        txtRetorno001.setForeground(new java.awt.Color(51, 51, 51));
        txtRetorno001.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtRetorno001.setText("0");
        txtRetorno001.setToolTipText("Digite a Quantidade!");
        txtRetorno001.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtRetorno001.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtRetorno001.setEnabled(false);
        txtRetorno001.setMaximumSize(new java.awt.Dimension(85, 21));
        txtRetorno001.setMinimumSize(new java.awt.Dimension(85, 21));
        txtRetorno001.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtRetiradaFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtRetornoFocusLost(evt);
            }
        });
        txtRetorno001.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtRetornoKeyReleased(evt);
            }
        });

        txtRetorno005.setColumns(15);
        txtRetorno005.setForeground(new java.awt.Color(51, 51, 51));
        txtRetorno005.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtRetorno005.setText("0");
        txtRetorno005.setToolTipText("Digite a Quantidade!");
        txtRetorno005.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtRetorno005.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtRetorno005.setEnabled(false);
        txtRetorno005.setMaximumSize(new java.awt.Dimension(85, 21));
        txtRetorno005.setMinimumSize(new java.awt.Dimension(85, 21));
        txtRetorno005.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtRetiradaFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtRetornoFocusLost(evt);
            }
        });
        txtRetorno005.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtRetornoKeyReleased(evt);
            }
        });

        txtRetorno010.setColumns(15);
        txtRetorno010.setForeground(new java.awt.Color(51, 51, 51));
        txtRetorno010.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtRetorno010.setText("0");
        txtRetorno010.setToolTipText("Digite a Quantidade!");
        txtRetorno010.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtRetorno010.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtRetorno010.setEnabled(false);
        txtRetorno010.setMaximumSize(new java.awt.Dimension(85, 21));
        txtRetorno010.setMinimumSize(new java.awt.Dimension(85, 21));
        txtRetorno010.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtRetiradaFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtRetornoFocusLost(evt);
            }
        });
        txtRetorno010.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtRetornoKeyReleased(evt);
            }
        });

        txtRetorno025.setColumns(15);
        txtRetorno025.setForeground(new java.awt.Color(51, 51, 51));
        txtRetorno025.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtRetorno025.setText("0");
        txtRetorno025.setToolTipText("Digite a Quantidade!");
        txtRetorno025.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtRetorno025.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtRetorno025.setEnabled(false);
        txtRetorno025.setMaximumSize(new java.awt.Dimension(85, 21));
        txtRetorno025.setMinimumSize(new java.awt.Dimension(85, 21));
        txtRetorno025.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtRetiradaFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtRetornoFocusLost(evt);
            }
        });
        txtRetorno025.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtRetornoKeyReleased(evt);
            }
        });

        txtRetorno100.setColumns(15);
        txtRetorno100.setForeground(new java.awt.Color(51, 51, 51));
        txtRetorno100.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtRetorno100.setText("0");
        txtRetorno100.setToolTipText("Digite a Quantidade!");
        txtRetorno100.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtRetorno100.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtRetorno100.setEnabled(false);
        txtRetorno100.setMaximumSize(new java.awt.Dimension(85, 21));
        txtRetorno100.setMinimumSize(new java.awt.Dimension(85, 21));
        txtRetorno100.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtRetiradaFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtRetornoFocusLost(evt);
            }
        });
        txtRetorno100.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtRetornoKeyReleased(evt);
            }
        });

        txtRetorno050.setColumns(15);
        txtRetorno050.setForeground(new java.awt.Color(51, 51, 51));
        txtRetorno050.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtRetorno050.setText("0");
        txtRetorno050.setToolTipText("Digite a Quantidade!");
        txtRetorno050.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtRetorno050.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtRetorno050.setEnabled(false);
        txtRetorno050.setMaximumSize(new java.awt.Dimension(85, 21));
        txtRetorno050.setMinimumSize(new java.awt.Dimension(85, 21));
        txtRetorno050.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtRetiradaFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtRetornoFocusLost(evt);
            }
        });
        txtRetorno050.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtRetornoKeyReleased(evt);
            }
        });

        txtRetorno10000.setColumns(15);
        txtRetorno10000.setForeground(new java.awt.Color(51, 51, 51));
        txtRetorno10000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtRetorno10000.setText("0");
        txtRetorno10000.setToolTipText("Digite a Quantidade!");
        txtRetorno10000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtRetorno10000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtRetorno10000.setEnabled(false);
        txtRetorno10000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtRetorno10000.setMinimumSize(new java.awt.Dimension(85, 21));
        txtRetorno10000.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtRetiradaFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtRetornoFocusLost(evt);
            }
        });
        txtRetorno10000.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtRetornoKeyReleased(evt);
            }
        });

        txtRetorno5000.setColumns(15);
        txtRetorno5000.setForeground(new java.awt.Color(51, 51, 51));
        txtRetorno5000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtRetorno5000.setText("0");
        txtRetorno5000.setToolTipText("Digite a Quantidade!");
        txtRetorno5000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtRetorno5000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtRetorno5000.setEnabled(false);
        txtRetorno5000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtRetorno5000.setMinimumSize(new java.awt.Dimension(85, 21));
        txtRetorno5000.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtRetiradaFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtRetornoFocusLost(evt);
            }
        });
        txtRetorno5000.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtRetornoKeyReleased(evt);
            }
        });

        txtRetorno2000.setColumns(15);
        txtRetorno2000.setForeground(new java.awt.Color(51, 51, 51));
        txtRetorno2000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtRetorno2000.setText("0");
        txtRetorno2000.setToolTipText("Digite a Quantidade!");
        txtRetorno2000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtRetorno2000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtRetorno2000.setEnabled(false);
        txtRetorno2000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtRetorno2000.setMinimumSize(new java.awt.Dimension(85, 21));
        txtRetorno2000.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtRetiradaFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtRetornoFocusLost(evt);
            }
        });
        txtRetorno2000.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtRetornoKeyReleased(evt);
            }
        });

        txtRetorno1000.setColumns(15);
        txtRetorno1000.setForeground(new java.awt.Color(51, 51, 51));
        txtRetorno1000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtRetorno1000.setText("0");
        txtRetorno1000.setToolTipText("Digite a Quantidade!");
        txtRetorno1000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtRetorno1000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtRetorno1000.setEnabled(false);
        txtRetorno1000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtRetorno1000.setMinimumSize(new java.awt.Dimension(85, 21));
        txtRetorno1000.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtRetiradaFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtRetornoFocusLost(evt);
            }
        });
        txtRetorno1000.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtRetornoKeyReleased(evt);
            }
        });

        txtRetorno500.setColumns(15);
        txtRetorno500.setForeground(new java.awt.Color(51, 51, 51));
        txtRetorno500.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtRetorno500.setText("0");
        txtRetorno500.setToolTipText("Digite a Quantidade!");
        txtRetorno500.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtRetorno500.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtRetorno500.setEnabled(false);
        txtRetorno500.setMaximumSize(new java.awt.Dimension(85, 21));
        txtRetorno500.setMinimumSize(new java.awt.Dimension(85, 21));
        txtRetorno500.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtRetiradaFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtRetornoFocusLost(evt);
            }
        });
        txtRetorno500.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtRetornoKeyReleased(evt);
            }
        });

        txtRetorno200.setColumns(15);
        txtRetorno200.setForeground(new java.awt.Color(51, 51, 51));
        txtRetorno200.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtRetorno200.setText("0");
        txtRetorno200.setToolTipText("Digite a Quantidade!");
        txtRetorno200.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtRetorno200.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtRetorno200.setEnabled(false);
        txtRetorno200.setMaximumSize(new java.awt.Dimension(85, 21));
        txtRetorno200.setMinimumSize(new java.awt.Dimension(85, 21));
        txtRetorno200.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtRetiradaFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtRetornoFocusLost(evt);
            }
        });
        txtRetorno200.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtRetornoKeyReleased(evt);
            }
        });

        jLabel75.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel75.setForeground(new java.awt.Color(102, 102, 102));
        jLabel75.setText("R$ 0,01");
        jLabel75.setRequestFocusEnabled(false);

        lblRetorno001.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblRetorno001.setForeground(new java.awt.Color(255, 102, 51));
        lblRetorno001.setText("R$ 0,00");
        lblRetorno001.setRequestFocusEnabled(false);

        jLabel76.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel76.setForeground(new java.awt.Color(102, 102, 102));
        jLabel76.setText("R$ 0,05");
        jLabel76.setRequestFocusEnabled(false);

        lblRetorno005.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblRetorno005.setForeground(new java.awt.Color(255, 102, 51));
        lblRetorno005.setText("R$ 0,00");
        lblRetorno005.setRequestFocusEnabled(false);

        jLabel77.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel77.setForeground(new java.awt.Color(102, 102, 102));
        jLabel77.setText("R$ 0,10");
        jLabel77.setRequestFocusEnabled(false);

        lblRetorno010.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblRetorno010.setForeground(new java.awt.Color(255, 102, 51));
        lblRetorno010.setText("R$ 0,00");
        lblRetorno010.setRequestFocusEnabled(false);

        jLabel78.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel78.setForeground(new java.awt.Color(102, 102, 102));
        jLabel78.setText("R$ 0,25");
        jLabel78.setRequestFocusEnabled(false);

        lblRetorno025.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblRetorno025.setForeground(new java.awt.Color(255, 102, 51));
        lblRetorno025.setText("R$ 0,00");
        lblRetorno025.setRequestFocusEnabled(false);

        jLabel79.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel79.setForeground(new java.awt.Color(102, 102, 102));
        jLabel79.setText("R$ 0,50");
        jLabel79.setRequestFocusEnabled(false);

        lblRetorno050.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblRetorno050.setForeground(new java.awt.Color(255, 102, 51));
        lblRetorno050.setText("R$ 0,00");
        lblRetorno050.setRequestFocusEnabled(false);

        jLabel80.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel80.setForeground(new java.awt.Color(102, 102, 102));
        jLabel80.setText("R$ 1,00");
        jLabel80.setRequestFocusEnabled(false);

        lblRetorno100.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblRetorno100.setForeground(new java.awt.Color(255, 102, 51));
        lblRetorno100.setText("R$ 0,00");
        lblRetorno100.setRequestFocusEnabled(false);

        jLabel81.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel81.setForeground(new java.awt.Color(102, 102, 102));
        jLabel81.setText("R$ 2,00");
        jLabel81.setRequestFocusEnabled(false);

        jLabel82.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel82.setForeground(new java.awt.Color(102, 102, 102));
        jLabel82.setText("R$ 5,00");
        jLabel82.setRequestFocusEnabled(false);

        jLabel83.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel83.setForeground(new java.awt.Color(102, 102, 102));
        jLabel83.setText("R$ 10,00");
        jLabel83.setRequestFocusEnabled(false);

        jLabel84.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel84.setForeground(new java.awt.Color(102, 102, 102));
        jLabel84.setText("R$ 20,00");
        jLabel84.setRequestFocusEnabled(false);

        jLabel85.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel85.setForeground(new java.awt.Color(102, 102, 102));
        jLabel85.setText("R$ 50,00");
        jLabel85.setRequestFocusEnabled(false);

        jLabel86.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel86.setForeground(new java.awt.Color(102, 102, 102));
        jLabel86.setText("R$ 100,00");
        jLabel86.setRequestFocusEnabled(false);

        lblRetorno10000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblRetorno10000.setForeground(new java.awt.Color(255, 102, 51));
        lblRetorno10000.setText("R$ 0,00");
        lblRetorno10000.setRequestFocusEnabled(false);

        lblRetorno5000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblRetorno5000.setForeground(new java.awt.Color(255, 102, 51));
        lblRetorno5000.setText("R$ 0,00");
        lblRetorno5000.setRequestFocusEnabled(false);

        lblRetorno2000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblRetorno2000.setForeground(new java.awt.Color(255, 102, 51));
        lblRetorno2000.setText("R$ 0,00");
        lblRetorno2000.setRequestFocusEnabled(false);

        lblRetorno1000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblRetorno1000.setForeground(new java.awt.Color(255, 102, 51));
        lblRetorno1000.setText("R$ 0,00");
        lblRetorno1000.setRequestFocusEnabled(false);

        lblRetorno500.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblRetorno500.setForeground(new java.awt.Color(255, 102, 51));
        lblRetorno500.setText("R$ 0,00");
        lblRetorno500.setRequestFocusEnabled(false);

        lblRetorno200.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblRetorno200.setForeground(new java.awt.Color(255, 102, 51));
        lblRetorno200.setText("R$ 0,00");
        lblRetorno200.setRequestFocusEnabled(false);

        jLabel87.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel87.setForeground(new java.awt.Color(102, 102, 102));
        jLabel87.setText("Moeda");

        jLabel88.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel88.setForeground(new java.awt.Color(102, 102, 102));
        jLabel88.setText("Quantidade");

        jLabel89.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel89.setForeground(new java.awt.Color(102, 102, 102));
        jLabel89.setText("Valor");

        jLabel90.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel90.setForeground(new java.awt.Color(102, 102, 102));
        jLabel90.setText("Cedula");

        jLabel91.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel91.setForeground(new java.awt.Color(102, 102, 102));
        jLabel91.setText("Quantidade");

        jLabel92.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel92.setForeground(new java.awt.Color(102, 102, 102));
        jLabel92.setText("Valor");

        lblLimpaRetorno.setFont(new java.awt.Font("Calibri", 2, 14)); // NOI18N
        lblLimpaRetorno.setForeground(new java.awt.Color(102, 102, 102));
        lblLimpaRetorno.setIcon(new javax.swing.ImageIcon(getClass().getResource("/scc/Imagens/draw_eraser.png"))); // NOI18N
        lblLimpaRetorno.setText("Limpar");
        lblLimpaRetorno.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        lblLimpaRetorno.setEnabled(false);
        lblLimpaRetorno.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblLimpaRetornoMouseClicked(evt);
            }
        });

        lblTotal28.setFont(new java.awt.Font("Calibri", 2, 14)); // NOI18N
        lblTotal28.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal28.setText("Valor da Composição:");
        lblTotal28.setFocusable(false);
        lblTotal28.setRequestFocusEnabled(false);

        lblValorComposicaoRetorno.setFont(new java.awt.Font("Calibri", 2, 14)); // NOI18N
        lblValorComposicaoRetorno.setForeground(new java.awt.Color(51, 51, 51));
        lblValorComposicaoRetorno.setText("R$ 0,00");
        lblValorComposicaoRetorno.setFocusable(false);
        lblValorComposicaoRetorno.setRequestFocusEnabled(false);

        javax.swing.GroupLayout pComposicaoRetornoLayout = new javax.swing.GroupLayout(pComposicaoRetorno);
        pComposicaoRetorno.setLayout(pComposicaoRetornoLayout);
        pComposicaoRetornoLayout.setHorizontalGroup(
            pComposicaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pComposicaoRetornoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pComposicaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pComposicaoRetornoLayout.createSequentialGroup()
                        .addComponent(jLabel87)
                        .addGap(26, 26, 26)
                        .addComponent(jLabel88)
                        .addGap(47, 47, 47)
                        .addComponent(jLabel89)
                        .addGap(104, 104, 104)
                        .addComponent(jLabel90)
                        .addGap(29, 29, 29)
                        .addComponent(jLabel91)
                        .addGap(44, 44, 44)
                        .addComponent(jLabel92))
                    .addGroup(pComposicaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addGroup(pComposicaoRetornoLayout.createSequentialGroup()
                            .addComponent(lblTotal28)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(lblValorComposicaoRetorno)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(lblLimpaRetorno))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pComposicaoRetornoLayout.createSequentialGroup()
                            .addGroup(pComposicaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel75)
                                .addComponent(jLabel76)
                                .addComponent(jLabel77)
                                .addComponent(jLabel78)
                                .addComponent(jLabel79)
                                .addComponent(jLabel80))
                            .addGap(18, 18, 18)
                            .addGroup(pComposicaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(txtRetorno001, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtRetorno005, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtRetorno010, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtRetorno025, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtRetorno050, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtRetorno100, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(18, 18, 18)
                            .addGroup(pComposicaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(lblRetorno050, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 111, Short.MAX_VALUE)
                                .addComponent(lblRetorno025, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblRetorno010, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblRetorno005, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblRetorno001, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblRetorno100, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGap(18, 18, 18)
                            .addGroup(pComposicaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel81)
                                .addComponent(jLabel82)
                                .addComponent(jLabel83)
                                .addComponent(jLabel84)
                                .addComponent(jLabel85)
                                .addComponent(jLabel86))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(pComposicaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(txtRetorno200, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtRetorno500, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtRetorno1000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtRetorno2000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtRetorno5000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtRetorno10000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(18, 18, 18)
                            .addGroup(pComposicaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(lblRetorno200, javax.swing.GroupLayout.DEFAULT_SIZE, 125, Short.MAX_VALUE)
                                .addComponent(lblRetorno500, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblRetorno1000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblRetorno2000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblRetorno5000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblRetorno10000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                        .addComponent(jSeparator12, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jSeparator13, javax.swing.GroupLayout.Alignment.LEADING)))
                .addContainerGap(340, Short.MAX_VALUE))
        );
        pComposicaoRetornoLayout.setVerticalGroup(
            pComposicaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pComposicaoRetornoLayout.createSequentialGroup()
                .addGap(13, 13, 13)
                .addGroup(pComposicaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false)
                    .addComponent(jLabel87)
                    .addComponent(jLabel88)
                    .addComponent(jLabel89)
                    .addComponent(jLabel90)
                    .addComponent(jLabel91)
                    .addComponent(jLabel92))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pComposicaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pComposicaoRetornoLayout.createSequentialGroup()
                        .addGroup(pComposicaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtRetorno200, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel81, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblRetorno200, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(pComposicaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtRetorno500, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel82, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblRetorno500, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(pComposicaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtRetorno1000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel83, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblRetorno1000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(pComposicaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtRetorno2000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel84, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblRetorno2000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(pComposicaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel85, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtRetorno5000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblRetorno5000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(pComposicaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel86, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtRetorno10000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblRetorno10000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(pComposicaoRetornoLayout.createSequentialGroup()
                        .addGroup(pComposicaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel75, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtRetorno001, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblRetorno001, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(pComposicaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel76, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtRetorno005, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblRetorno005, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(pComposicaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel77, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblRetorno010, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtRetorno010, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(pComposicaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel78, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblRetorno025, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtRetorno025, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(pComposicaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel79, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtRetorno050, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblRetorno050, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(pComposicaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel80, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtRetorno100, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblRetorno100, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jSeparator13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pComposicaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pComposicaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lblTotal28)
                        .addComponent(lblValorComposicaoRetorno))
                    .addComponent(lblLimpaRetorno))
                .addContainerGap())
        );

        pObservacaoRetorno.setPreferredSize(new java.awt.Dimension(925, 117));

        lblTotal20.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        lblTotal20.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal20.setText("Observação:");

        textAreaObservacaoRetorno.setColumns(20);
        textAreaObservacaoRetorno.setDocument(new FixedLengthDocument(500));
        textAreaObservacaoRetorno.setFont(new java.awt.Font("Tahoma", 0, 13)); // NOI18N
        textAreaObservacaoRetorno.setForeground(new java.awt.Color(51, 51, 51));
        textAreaObservacaoRetorno.setLineWrap(true);
        textAreaObservacaoRetorno.setRows(5);
        textAreaObservacaoRetorno.setWrapStyleWord(true);
        textAreaObservacaoRetorno.setEnabled(false);
        textAreaObservacaoRetorno.setMaximumSize(new java.awt.Dimension(224, 68));
        textAreaObservacaoRetorno.setMinimumSize(new java.awt.Dimension(224, 68));
        textAreaObservacaoRetorno.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                textAreaObservacaoRetornoKeyTyped(evt);
            }
        });
        jScrollPane6.setViewportView(textAreaObservacaoRetorno);

        lblTotal21.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        lblTotal21.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal21.setText("500 caracteres.");

        lblTotal22.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        lblTotal22.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal22.setText("Restando:");

        lblRestanteRetorno.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        lblRestanteRetorno.setForeground(new java.awt.Color(102, 102, 102));
        lblRestanteRetorno.setText("500");

        javax.swing.GroupLayout pObservacaoRetornoLayout = new javax.swing.GroupLayout(pObservacaoRetorno);
        pObservacaoRetorno.setLayout(pObservacaoRetornoLayout);
        pObservacaoRetornoLayout.setHorizontalGroup(
            pObservacaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pObservacaoRetornoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pObservacaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblTotal20)
                    .addGroup(pObservacaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 496, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(pObservacaoRetornoLayout.createSequentialGroup()
                            .addComponent(lblTotal21)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(lblTotal22)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(lblRestanteRetorno))))
                .addContainerGap(426, Short.MAX_VALUE))
        );
        pObservacaoRetornoLayout.setVerticalGroup(
            pObservacaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pObservacaoRetornoLayout.createSequentialGroup()
                .addGap(5, 5, 5)
                .addComponent(lblTotal20)
                .addGap(1, 1, 1)
                .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(1, 1, 1)
                .addGroup(pObservacaoRetornoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblTotal21)
                    .addComponent(lblTotal22)
                    .addComponent(lblRestanteRetorno))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        btRegistrarRetorno.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        btRegistrarRetorno.setForeground(new java.awt.Color(51, 51, 51));
        btRegistrarRetorno.setText("Registrar Retorno");
        btRegistrarRetorno.setEnabled(false);
        btRegistrarRetorno.setMaximumSize(new java.awt.Dimension(99, 30));
        btRegistrarRetorno.setMinimumSize(new java.awt.Dimension(99, 30));
        btRegistrarRetorno.setPreferredSize(new java.awt.Dimension(99, 30));
        btRegistrarRetorno.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btRegistrarRetornoActionPerformed(evt);
            }
        });

        lblTotal23.setFont(new java.awt.Font("Calibri", 1, 18)); // NOI18N
        lblTotal23.setForeground(new java.awt.Color(74, 139, 245));
        lblTotal23.setText("Retorno de Troco");
        lblTotal23.setFocusable(false);
        lblTotal23.setRequestFocusEnabled(false);

        javax.swing.GroupLayout jpRetornoDeTrocoLayout = new javax.swing.GroupLayout(jpRetornoDeTroco);
        jpRetornoDeTroco.setLayout(jpRetornoDeTrocoLayout);
        jpRetornoDeTrocoLayout.setHorizontalGroup(
            jpRetornoDeTrocoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpRetornoDeTrocoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpRetornoDeTrocoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(pComposicaoRetorno, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pObservacaoRetorno, javax.swing.GroupLayout.DEFAULT_SIZE, 932, Short.MAX_VALUE)
                    .addComponent(jSeparator14)
                    .addComponent(pCabecalhoRetorno, javax.swing.GroupLayout.DEFAULT_SIZE, 932, Short.MAX_VALUE)
                    .addGroup(jpRetornoDeTrocoLayout.createSequentialGroup()
                        .addGroup(jpRetornoDeTrocoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblTotal23)
                            .addComponent(btRegistrarRetorno, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jpRetornoDeTrocoLayout.setVerticalGroup(
            jpRetornoDeTrocoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpRetornoDeTrocoLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addComponent(lblTotal23)
                .addGap(1, 1, 1)
                .addComponent(jSeparator14, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pCabecalhoRetorno, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pComposicaoRetorno, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pObservacaoRetorno, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(btRegistrarRetorno, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(23, Short.MAX_VALUE))
        );

        tabLancamento.addTab("Retorno de Troco", jpRetornoDeTroco);

        jpCreditoExterno.setBackground(new java.awt.Color(255, 255, 255));

        pSuperior1.setPreferredSize(new java.awt.Dimension(925, 60));

        javax.swing.GroupLayout pSuperior1Layout = new javax.swing.GroupLayout(pSuperior1);
        pSuperior1.setLayout(pSuperior1Layout);
        pSuperior1Layout.setHorizontalGroup(
            pSuperior1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        pSuperior1Layout.setVerticalGroup(
            pSuperior1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 60, Short.MAX_VALUE)
        );

        jPanel3.setPreferredSize(new java.awt.Dimension(925, 311));

        txtCE001.setColumns(15);
        txtCE001.setForeground(new java.awt.Color(51, 51, 51));
        txtCE001.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtCE001.setText("0");
        txtCE001.setToolTipText("Digite a Quantidade!");
        txtCE001.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtCE001.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtCE001.setMaximumSize(new java.awt.Dimension(85, 21));
        txtCE001.setMinimumSize(new java.awt.Dimension(85, 21));
        txtCE001.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtCEFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtCEFocusLost(evt);
            }
        });
        txtCE001.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtCEKeyReleased(evt);
            }
        });

        txtCE005.setColumns(15);
        txtCE005.setForeground(new java.awt.Color(51, 51, 51));
        txtCE005.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtCE005.setText("0");
        txtCE005.setToolTipText("Digite a Quantidade!");
        txtCE005.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtCE005.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtCE005.setMaximumSize(new java.awt.Dimension(85, 21));
        txtCE005.setMinimumSize(new java.awt.Dimension(85, 21));
        txtCE005.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtCEFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtCEFocusLost(evt);
            }
        });
        txtCE005.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtCEKeyReleased(evt);
            }
        });

        txtCE010.setColumns(15);
        txtCE010.setForeground(new java.awt.Color(51, 51, 51));
        txtCE010.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtCE010.setText("0");
        txtCE010.setToolTipText("Digite a Quantidade!");
        txtCE010.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtCE010.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtCE010.setMaximumSize(new java.awt.Dimension(85, 21));
        txtCE010.setMinimumSize(new java.awt.Dimension(85, 21));
        txtCE010.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtCEFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtCEFocusLost(evt);
            }
        });
        txtCE010.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtCEKeyReleased(evt);
            }
        });

        txtCE025.setColumns(15);
        txtCE025.setForeground(new java.awt.Color(51, 51, 51));
        txtCE025.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtCE025.setText("0");
        txtCE025.setToolTipText("Digite a Quantidade!");
        txtCE025.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtCE025.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtCE025.setMaximumSize(new java.awt.Dimension(85, 21));
        txtCE025.setMinimumSize(new java.awt.Dimension(85, 21));
        txtCE025.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtCEFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtCEFocusLost(evt);
            }
        });
        txtCE025.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtCEKeyReleased(evt);
            }
        });

        txtCE100.setColumns(15);
        txtCE100.setForeground(new java.awt.Color(51, 51, 51));
        txtCE100.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtCE100.setText("0");
        txtCE100.setToolTipText("Digite a Quantidade!");
        txtCE100.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtCE100.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtCE100.setMaximumSize(new java.awt.Dimension(85, 21));
        txtCE100.setMinimumSize(new java.awt.Dimension(85, 21));
        txtCE100.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtCEFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtCEFocusLost(evt);
            }
        });
        txtCE100.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtCEKeyReleased(evt);
            }
        });

        txtCE050.setColumns(15);
        txtCE050.setForeground(new java.awt.Color(51, 51, 51));
        txtCE050.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtCE050.setText("0");
        txtCE050.setToolTipText("Digite a Quantidade!");
        txtCE050.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtCE050.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtCE050.setMaximumSize(new java.awt.Dimension(85, 21));
        txtCE050.setMinimumSize(new java.awt.Dimension(85, 21));
        txtCE050.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtCEFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtCEFocusLost(evt);
            }
        });
        txtCE050.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtCEKeyReleased(evt);
            }
        });

        txtCE10000.setColumns(15);
        txtCE10000.setForeground(new java.awt.Color(51, 51, 51));
        txtCE10000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtCE10000.setText("0");
        txtCE10000.setToolTipText("Digite a Quantidade!");
        txtCE10000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtCE10000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtCE10000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtCE10000.setMinimumSize(new java.awt.Dimension(85, 21));
        txtCE10000.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtCEFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtCEFocusLost(evt);
            }
        });
        txtCE10000.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtCEKeyReleased(evt);
            }
        });

        txtCE5000.setColumns(15);
        txtCE5000.setForeground(new java.awt.Color(51, 51, 51));
        txtCE5000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtCE5000.setText("0");
        txtCE5000.setToolTipText("Digite a Quantidade!");
        txtCE5000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtCE5000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtCE5000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtCE5000.setMinimumSize(new java.awt.Dimension(85, 21));
        txtCE5000.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtCEFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtCEFocusLost(evt);
            }
        });
        txtCE5000.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtCEKeyReleased(evt);
            }
        });

        txtCE2000.setColumns(15);
        txtCE2000.setForeground(new java.awt.Color(51, 51, 51));
        txtCE2000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtCE2000.setText("0");
        txtCE2000.setToolTipText("Digite a Quantidade!");
        txtCE2000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtCE2000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtCE2000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtCE2000.setMinimumSize(new java.awt.Dimension(85, 21));
        txtCE2000.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtCEFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtCEFocusLost(evt);
            }
        });
        txtCE2000.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtCEKeyReleased(evt);
            }
        });

        txtCE1000.setColumns(15);
        txtCE1000.setForeground(new java.awt.Color(51, 51, 51));
        txtCE1000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtCE1000.setText("0");
        txtCE1000.setToolTipText("Digite a Quantidade!");
        txtCE1000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtCE1000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtCE1000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtCE1000.setMinimumSize(new java.awt.Dimension(85, 21));
        txtCE1000.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtCEFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtCEFocusLost(evt);
            }
        });
        txtCE1000.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtCEKeyReleased(evt);
            }
        });

        txtCE500.setColumns(15);
        txtCE500.setForeground(new java.awt.Color(51, 51, 51));
        txtCE500.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtCE500.setText("0");
        txtCE500.setToolTipText("Digite a Quantidade!");
        txtCE500.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtCE500.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtCE500.setMaximumSize(new java.awt.Dimension(85, 21));
        txtCE500.setMinimumSize(new java.awt.Dimension(85, 21));
        txtCE500.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtCEFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtCEFocusLost(evt);
            }
        });
        txtCE500.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtCEKeyReleased(evt);
            }
        });

        txtCE200.setColumns(15);
        txtCE200.setForeground(new java.awt.Color(51, 51, 51));
        txtCE200.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtCE200.setText("0");
        txtCE200.setToolTipText("Digite a Quantidade!");
        txtCE200.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtCE200.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtCE200.setMaximumSize(new java.awt.Dimension(85, 21));
        txtCE200.setMinimumSize(new java.awt.Dimension(85, 21));
        txtCE200.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtCEFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtCEFocusLost(evt);
            }
        });
        txtCE200.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtCEKeyReleased(evt);
            }
        });

        jLabel39.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel39.setForeground(new java.awt.Color(102, 102, 102));
        jLabel39.setText("R$ 0,01");
        jLabel39.setRequestFocusEnabled(false);

        lblCE001.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblCE001.setForeground(new java.awt.Color(255, 102, 51));
        lblCE001.setText("R$ 0,00");
        lblCE001.setRequestFocusEnabled(false);

        jLabel40.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel40.setForeground(new java.awt.Color(102, 102, 102));
        jLabel40.setText("R$ 0,05");
        jLabel40.setRequestFocusEnabled(false);

        lblCE005.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblCE005.setForeground(new java.awt.Color(255, 102, 51));
        lblCE005.setText("R$ 0,00");
        lblCE005.setRequestFocusEnabled(false);

        jLabel41.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel41.setForeground(new java.awt.Color(102, 102, 102));
        jLabel41.setText("R$ 0,10");
        jLabel41.setRequestFocusEnabled(false);

        lblCE010.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblCE010.setForeground(new java.awt.Color(255, 102, 51));
        lblCE010.setText("R$ 0,00");
        lblCE010.setRequestFocusEnabled(false);

        jLabel42.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel42.setForeground(new java.awt.Color(102, 102, 102));
        jLabel42.setText("R$ 0,25");
        jLabel42.setRequestFocusEnabled(false);

        lblCE025.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblCE025.setForeground(new java.awt.Color(255, 102, 51));
        lblCE025.setText("R$ 0,00");
        lblCE025.setRequestFocusEnabled(false);

        jLabel43.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel43.setForeground(new java.awt.Color(102, 102, 102));
        jLabel43.setText("R$ 0,50");
        jLabel43.setRequestFocusEnabled(false);

        lblCE050.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblCE050.setForeground(new java.awt.Color(255, 102, 51));
        lblCE050.setText("R$ 0,00");
        lblCE050.setRequestFocusEnabled(false);

        jLabel44.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel44.setForeground(new java.awt.Color(102, 102, 102));
        jLabel44.setText("R$ 1,00");
        jLabel44.setRequestFocusEnabled(false);

        lblCE100.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblCE100.setForeground(new java.awt.Color(255, 102, 51));
        lblCE100.setText("R$ 0,00");
        lblCE100.setRequestFocusEnabled(false);

        jLabel45.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel45.setForeground(new java.awt.Color(102, 102, 102));
        jLabel45.setText("R$ 2,00");
        jLabel45.setRequestFocusEnabled(false);

        jLabel46.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel46.setForeground(new java.awt.Color(102, 102, 102));
        jLabel46.setText("R$ 5,00");
        jLabel46.setRequestFocusEnabled(false);

        jLabel47.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel47.setForeground(new java.awt.Color(102, 102, 102));
        jLabel47.setText("R$ 10,00");
        jLabel47.setRequestFocusEnabled(false);

        jLabel48.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel48.setForeground(new java.awt.Color(102, 102, 102));
        jLabel48.setText("R$ 20,00");
        jLabel48.setRequestFocusEnabled(false);

        jLabel49.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel49.setForeground(new java.awt.Color(102, 102, 102));
        jLabel49.setText("R$ 50,00");
        jLabel49.setRequestFocusEnabled(false);

        jLabel50.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel50.setForeground(new java.awt.Color(102, 102, 102));
        jLabel50.setText("R$ 100,00");
        jLabel50.setRequestFocusEnabled(false);

        lblCE10000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblCE10000.setForeground(new java.awt.Color(255, 102, 51));
        lblCE10000.setText("R$ 0,00");
        lblCE10000.setRequestFocusEnabled(false);

        lblCE5000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblCE5000.setForeground(new java.awt.Color(255, 102, 51));
        lblCE5000.setText("R$ 0,00");
        lblCE5000.setRequestFocusEnabled(false);

        lblCE2000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblCE2000.setForeground(new java.awt.Color(255, 102, 51));
        lblCE2000.setText("R$ 0,00");
        lblCE2000.setRequestFocusEnabled(false);

        lblCE1000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblCE1000.setForeground(new java.awt.Color(255, 102, 51));
        lblCE1000.setText("R$ 0,00");
        lblCE1000.setRequestFocusEnabled(false);

        lblCE500.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblCE500.setForeground(new java.awt.Color(255, 102, 51));
        lblCE500.setText("R$ 0,00");
        lblCE500.setRequestFocusEnabled(false);

        lblCE200.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblCE200.setForeground(new java.awt.Color(255, 102, 51));
        lblCE200.setText("R$ 0,00");
        lblCE200.setRequestFocusEnabled(false);

        jLabel51.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel51.setForeground(new java.awt.Color(102, 102, 102));
        jLabel51.setText("Moeda");

        jLabel52.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel52.setForeground(new java.awt.Color(102, 102, 102));
        jLabel52.setText("Quantidade");

        jLabel53.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel53.setForeground(new java.awt.Color(102, 102, 102));
        jLabel53.setText("Valor");

        jLabel54.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel54.setForeground(new java.awt.Color(102, 102, 102));
        jLabel54.setText("Cedula");

        jLabel55.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel55.setForeground(new java.awt.Color(102, 102, 102));
        jLabel55.setText("Quantidade");

        jLabel56.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel56.setForeground(new java.awt.Color(102, 102, 102));
        jLabel56.setText("Valor");

        lblLimpaL1.setFont(new java.awt.Font("Calibri", 2, 14)); // NOI18N
        lblLimpaL1.setForeground(new java.awt.Color(102, 102, 102));
        lblLimpaL1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/scc/Imagens/draw_eraser.png"))); // NOI18N
        lblLimpaL1.setText("Limpar");
        lblLimpaL1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        lblLimpaL1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblLimpaL1MouseClicked(evt);
            }
        });

        lblTotal29.setFont(new java.awt.Font("Calibri", 2, 14)); // NOI18N
        lblTotal29.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal29.setText("Valor da Composição:");
        lblTotal29.setFocusable(false);
        lblTotal29.setRequestFocusEnabled(false);

        lblValorComposicaoCE.setFont(new java.awt.Font("Calibri", 2, 14)); // NOI18N
        lblValorComposicaoCE.setForeground(new java.awt.Color(51, 51, 51));
        lblValorComposicaoCE.setText("R$ 0,00");
        lblValorComposicaoCE.setFocusable(false);
        lblValorComposicaoCE.setRequestFocusEnabled(false);

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addComponent(jLabel51)
                        .addGap(26, 26, 26)
                        .addComponent(jLabel52)
                        .addGap(49, 49, 49)
                        .addComponent(jLabel53)
                        .addGap(103, 103, 103)
                        .addComponent(jLabel54)
                        .addGap(26, 26, 26)
                        .addComponent(jLabel55)
                        .addGap(46, 46, 46)
                        .addComponent(jLabel56))
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addGroup(jPanel3Layout.createSequentialGroup()
                            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel39)
                                .addComponent(jLabel40)
                                .addComponent(jLabel41)
                                .addComponent(jLabel42)
                                .addComponent(jLabel43)
                                .addComponent(jLabel44))
                            .addGap(18, 18, 18)
                            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(txtCE001, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtCE005, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtCE010, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtCE025, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtCE050, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtCE100, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(18, 18, 18)
                            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(lblCE050, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 111, Short.MAX_VALUE)
                                .addComponent(lblCE025, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblCE010, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblCE005, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblCE001, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblCE100, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGap(18, 18, 18)
                            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel45)
                                .addComponent(jLabel46)
                                .addComponent(jLabel47)
                                .addComponent(jLabel48)
                                .addComponent(jLabel49)
                                .addComponent(jLabel50))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(txtCE200, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtCE500, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtCE1000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtCE2000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtCE5000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtCE10000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(18, 18, 18)
                            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(lblCE200, javax.swing.GroupLayout.DEFAULT_SIZE, 125, Short.MAX_VALUE)
                                .addComponent(lblCE500, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblCE1000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblCE2000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblCE5000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblCE10000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                        .addComponent(jSeparator5)
                        .addComponent(jSeparator6)
                        .addGroup(jPanel3Layout.createSequentialGroup()
                            .addComponent(lblTotal29)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(lblValorComposicaoCE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(lblLimpaL1))))
                .addContainerGap(340, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(13, 13, 13)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false)
                    .addComponent(jLabel51)
                    .addComponent(jLabel52)
                    .addComponent(jLabel53)
                    .addComponent(jLabel54)
                    .addComponent(jLabel55)
                    .addComponent(jLabel56))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtCE200, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel45, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblCE200, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtCE500, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel46, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblCE500, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtCE1000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel47, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblCE1000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtCE2000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel48, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblCE2000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel49, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtCE5000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblCE5000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel50, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtCE10000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblCE10000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel39, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtCE001, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblCE001, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel40, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtCE005, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblCE005, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel41, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblCE010, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtCE010, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel42, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblCE025, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtCE025, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel43, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtCE050, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblCE050, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel44, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtCE100, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblCE100, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jSeparator6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lblTotal29)
                        .addComponent(lblValorComposicaoCE))
                    .addComponent(lblLimpaL1))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel4.setPreferredSize(new java.awt.Dimension(925, 117));

        lblTotal6.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        lblTotal6.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal6.setText("Observação:");

        textAreaObservacaoCE.setColumns(20);
        textAreaObservacaoCE.setDocument(new FixedLengthDocument(500));
        textAreaObservacaoCE.setFont(new java.awt.Font("Tahoma", 0, 13)); // NOI18N
        textAreaObservacaoCE.setForeground(new java.awt.Color(51, 51, 51));
        textAreaObservacaoCE.setLineWrap(true);
        textAreaObservacaoCE.setRows(5);
        textAreaObservacaoCE.setWrapStyleWord(true);
        textAreaObservacaoCE.setMaximumSize(new java.awt.Dimension(224, 68));
        textAreaObservacaoCE.setMinimumSize(new java.awt.Dimension(224, 68));
        textAreaObservacaoCE.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                textAreaObservacaoCEKeyTyped(evt);
            }
        });
        jScrollPane3.setViewportView(textAreaObservacaoCE);

        lblTotal12.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        lblTotal12.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal12.setText("500 caracteres.");

        lblTotal13.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        lblTotal13.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal13.setText("Restando:");

        lblRestanteCE.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        lblRestanteCE.setForeground(new java.awt.Color(102, 102, 102));
        lblRestanteCE.setText("500");

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblTotal6)
                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 496, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(jPanel4Layout.createSequentialGroup()
                            .addComponent(lblTotal12)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(lblTotal13)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(lblRestanteCE))))
                .addGap(419, 419, 419))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGap(5, 5, 5)
                .addComponent(lblTotal6)
                .addGap(1, 1, 1)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(1, 1, 1)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblTotal12)
                    .addComponent(lblTotal13)
                    .addComponent(lblRestanteCE))
                .addContainerGap())
        );

        lblTotal10.setFont(new java.awt.Font("Calibri", 1, 18)); // NOI18N
        lblTotal10.setForeground(new java.awt.Color(74, 139, 245));
        lblTotal10.setText("Crédito Externo");
        lblTotal10.setFocusable(false);
        lblTotal10.setRequestFocusEnabled(false);

        btRegistrarCE.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        btRegistrarCE.setForeground(new java.awt.Color(51, 51, 51));
        btRegistrarCE.setText("Registrar Crédito Externo");
        btRegistrarCE.setMaximumSize(new java.awt.Dimension(99, 30));
        btRegistrarCE.setMinimumSize(new java.awt.Dimension(99, 30));
        btRegistrarCE.setPreferredSize(new java.awt.Dimension(99, 30));
        btRegistrarCE.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btRegistrarCEActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jpCreditoExternoLayout = new javax.swing.GroupLayout(jpCreditoExterno);
        jpCreditoExterno.setLayout(jpCreditoExternoLayout);
        jpCreditoExternoLayout.setHorizontalGroup(
            jpCreditoExternoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpCreditoExternoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpCreditoExternoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 932, Short.MAX_VALUE)
                    .addComponent(jSeparator10)
                    .addComponent(pSuperior1, javax.swing.GroupLayout.DEFAULT_SIZE, 932, Short.MAX_VALUE)
                    .addComponent(jPanel4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 932, Short.MAX_VALUE)
                    .addGroup(jpCreditoExternoLayout.createSequentialGroup()
                        .addGroup(jpCreditoExternoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblTotal10)
                            .addComponent(btRegistrarCE, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jpCreditoExternoLayout.setVerticalGroup(
            jpCreditoExternoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpCreditoExternoLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addComponent(lblTotal10)
                .addGap(1, 1, 1)
                .addComponent(jSeparator10, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pSuperior1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(btRegistrarCE, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(23, Short.MAX_VALUE))
        );

        tabLancamento.addTab("Crédito Externo", jpCreditoExterno);

        jpPagamentosDiversos.setBackground(new java.awt.Color(255, 255, 255));

        pSuperior3.setPreferredSize(new java.awt.Dimension(475, 60));

        cbTipoPagamento.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        cbTipoPagamento.setForeground(new java.awt.Color(51, 51, 51));
        cbTipoPagamento.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Selecione" }));
        cbTipoPagamento.setMinimumSize(new java.awt.Dimension(144, 25));
        cbTipoPagamento.setPreferredSize(new java.awt.Dimension(144, 25));

        org.jdesktop.beansbinding.Binding binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jpPagamentosDiversos, org.jdesktop.beansbinding.ELProperty.create("${enabled}"), cbTipoPagamento, org.jdesktop.beansbinding.BeanProperty.create("enabled"));
        bindingGroup.addBinding(binding);

        lblTipoPagamento.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        lblTipoPagamento.setForeground(new java.awt.Color(102, 102, 102));
        lblTipoPagamento.setText("Tipo de Pagamento:");

        javax.swing.GroupLayout pSuperior3Layout = new javax.swing.GroupLayout(pSuperior3);
        pSuperior3.setLayout(pSuperior3Layout);
        pSuperior3Layout.setHorizontalGroup(
            pSuperior3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pSuperior3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pSuperior3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblTipoPagamento)
                    .addComponent(cbTipoPagamento, javax.swing.GroupLayout.PREFERRED_SIZE, 171, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pSuperior3Layout.setVerticalGroup(
            pSuperior3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pSuperior3Layout.createSequentialGroup()
                .addGap(5, 5, 5)
                .addComponent(lblTipoPagamento)
                .addGap(1, 1, 1)
                .addComponent(cbTipoPagamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(13, Short.MAX_VALUE))
        );

        txtP001.setColumns(15);
        txtP001.setForeground(new java.awt.Color(51, 51, 51));
        txtP001.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtP001.setText("0");
        txtP001.setToolTipText("Digite a Quantidade!");
        txtP001.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtP001.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtP001.setMaximumSize(new java.awt.Dimension(85, 21));
        txtP001.setMinimumSize(new java.awt.Dimension(85, 21));

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jpPagamentosDiversos, org.jdesktop.beansbinding.ELProperty.create("${enabled}"), txtP001, org.jdesktop.beansbinding.BeanProperty.create("enabled"));
        bindingGroup.addBinding(binding);

        txtP001.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtPFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtPFocusLost(evt);
            }
        });
        txtP001.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtPKeyReleased(evt);
            }
        });

        txtP005.setColumns(15);
        txtP005.setForeground(new java.awt.Color(51, 51, 51));
        txtP005.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtP005.setText("0");
        txtP005.setToolTipText("Digite a Quantidade!");
        txtP005.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtP005.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtP005.setMaximumSize(new java.awt.Dimension(85, 21));
        txtP005.setMinimumSize(new java.awt.Dimension(85, 21));

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jpPagamentosDiversos, org.jdesktop.beansbinding.ELProperty.create("${enabled}"), txtP005, org.jdesktop.beansbinding.BeanProperty.create("enabled"));
        bindingGroup.addBinding(binding);

        txtP005.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtPFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtPFocusLost(evt);
            }
        });
        txtP005.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtPKeyReleased(evt);
            }
        });

        txtP010.setColumns(15);
        txtP010.setForeground(new java.awt.Color(51, 51, 51));
        txtP010.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtP010.setText("0");
        txtP010.setToolTipText("Digite a Quantidade!");
        txtP010.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtP010.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtP010.setMaximumSize(new java.awt.Dimension(85, 21));
        txtP010.setMinimumSize(new java.awt.Dimension(85, 21));

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jpPagamentosDiversos, org.jdesktop.beansbinding.ELProperty.create("${enabled}"), txtP010, org.jdesktop.beansbinding.BeanProperty.create("enabled"));
        bindingGroup.addBinding(binding);

        txtP010.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtPFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtPFocusLost(evt);
            }
        });
        txtP010.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtPKeyReleased(evt);
            }
        });

        txtP025.setColumns(15);
        txtP025.setForeground(new java.awt.Color(51, 51, 51));
        txtP025.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtP025.setText("0");
        txtP025.setToolTipText("Digite a Quantidade!");
        txtP025.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtP025.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtP025.setMaximumSize(new java.awt.Dimension(85, 21));
        txtP025.setMinimumSize(new java.awt.Dimension(85, 21));

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jpPagamentosDiversos, org.jdesktop.beansbinding.ELProperty.create("${enabled}"), txtP025, org.jdesktop.beansbinding.BeanProperty.create("enabled"));
        bindingGroup.addBinding(binding);

        txtP025.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtPFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtPFocusLost(evt);
            }
        });
        txtP025.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtPKeyReleased(evt);
            }
        });

        txtP100.setColumns(15);
        txtP100.setForeground(new java.awt.Color(51, 51, 51));
        txtP100.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtP100.setText("0");
        txtP100.setToolTipText("Digite a Quantidade!");
        txtP100.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtP100.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtP100.setMaximumSize(new java.awt.Dimension(85, 21));
        txtP100.setMinimumSize(new java.awt.Dimension(85, 21));

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jpPagamentosDiversos, org.jdesktop.beansbinding.ELProperty.create("${enabled}"), txtP100, org.jdesktop.beansbinding.BeanProperty.create("enabled"));
        bindingGroup.addBinding(binding);

        txtP100.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtPFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtPFocusLost(evt);
            }
        });
        txtP100.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtPKeyReleased(evt);
            }
        });

        txtP050.setColumns(15);
        txtP050.setForeground(new java.awt.Color(51, 51, 51));
        txtP050.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtP050.setText("0");
        txtP050.setToolTipText("Digite a Quantidade!");
        txtP050.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtP050.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtP050.setMaximumSize(new java.awt.Dimension(85, 21));
        txtP050.setMinimumSize(new java.awt.Dimension(85, 21));

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jpPagamentosDiversos, org.jdesktop.beansbinding.ELProperty.create("${enabled}"), txtP050, org.jdesktop.beansbinding.BeanProperty.create("enabled"));
        bindingGroup.addBinding(binding);

        txtP050.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtPFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtPFocusLost(evt);
            }
        });
        txtP050.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtPKeyReleased(evt);
            }
        });

        txtP10000.setColumns(15);
        txtP10000.setForeground(new java.awt.Color(51, 51, 51));
        txtP10000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtP10000.setText("0");
        txtP10000.setToolTipText("Digite a Quantidade!");
        txtP10000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtP10000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtP10000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtP10000.setMinimumSize(new java.awt.Dimension(85, 21));

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jpPagamentosDiversos, org.jdesktop.beansbinding.ELProperty.create("${enabled}"), txtP10000, org.jdesktop.beansbinding.BeanProperty.create("enabled"));
        bindingGroup.addBinding(binding);

        txtP10000.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtPFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtPFocusLost(evt);
            }
        });
        txtP10000.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtPKeyReleased(evt);
            }
        });

        txtP5000.setColumns(15);
        txtP5000.setForeground(new java.awt.Color(51, 51, 51));
        txtP5000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtP5000.setText("0");
        txtP5000.setToolTipText("Digite a Quantidade!");
        txtP5000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtP5000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtP5000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtP5000.setMinimumSize(new java.awt.Dimension(85, 21));

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jpPagamentosDiversos, org.jdesktop.beansbinding.ELProperty.create("${enabled}"), txtP5000, org.jdesktop.beansbinding.BeanProperty.create("enabled"));
        bindingGroup.addBinding(binding);

        txtP5000.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtPFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtPFocusLost(evt);
            }
        });
        txtP5000.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtPKeyReleased(evt);
            }
        });

        txtP2000.setColumns(15);
        txtP2000.setForeground(new java.awt.Color(51, 51, 51));
        txtP2000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtP2000.setText("0");
        txtP2000.setToolTipText("Digite a Quantidade!");
        txtP2000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtP2000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtP2000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtP2000.setMinimumSize(new java.awt.Dimension(85, 21));

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jpPagamentosDiversos, org.jdesktop.beansbinding.ELProperty.create("${enabled}"), txtP2000, org.jdesktop.beansbinding.BeanProperty.create("enabled"));
        bindingGroup.addBinding(binding);

        txtP2000.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtPFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtPFocusLost(evt);
            }
        });
        txtP2000.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtPKeyReleased(evt);
            }
        });

        txtP1000.setColumns(15);
        txtP1000.setForeground(new java.awt.Color(51, 51, 51));
        txtP1000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtP1000.setText("0");
        txtP1000.setToolTipText("Digite a Quantidade!");
        txtP1000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtP1000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtP1000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtP1000.setMinimumSize(new java.awt.Dimension(85, 21));

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jpPagamentosDiversos, org.jdesktop.beansbinding.ELProperty.create("${enabled}"), txtP1000, org.jdesktop.beansbinding.BeanProperty.create("enabled"));
        bindingGroup.addBinding(binding);

        txtP1000.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtPFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtPFocusLost(evt);
            }
        });
        txtP1000.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtPKeyReleased(evt);
            }
        });

        txtP500.setColumns(15);
        txtP500.setForeground(new java.awt.Color(51, 51, 51));
        txtP500.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtP500.setText("0");
        txtP500.setToolTipText("Digite a Quantidade!");
        txtP500.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtP500.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtP500.setMaximumSize(new java.awt.Dimension(85, 21));
        txtP500.setMinimumSize(new java.awt.Dimension(85, 21));

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jpPagamentosDiversos, org.jdesktop.beansbinding.ELProperty.create("${enabled}"), txtP500, org.jdesktop.beansbinding.BeanProperty.create("enabled"));
        bindingGroup.addBinding(binding);

        txtP500.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtPFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtPFocusLost(evt);
            }
        });
        txtP500.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtPKeyReleased(evt);
            }
        });

        txtP200.setColumns(15);
        txtP200.setForeground(new java.awt.Color(51, 51, 51));
        txtP200.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtP200.setText("0");
        txtP200.setToolTipText("Digite a Quantidade!");
        txtP200.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtP200.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtP200.setMaximumSize(new java.awt.Dimension(85, 21));
        txtP200.setMinimumSize(new java.awt.Dimension(85, 21));

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jpPagamentosDiversos, org.jdesktop.beansbinding.ELProperty.create("${enabled}"), txtP200, org.jdesktop.beansbinding.BeanProperty.create("enabled"));
        bindingGroup.addBinding(binding);

        txtP200.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtPFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtPFocusLost(evt);
            }
        });
        txtP200.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtPKeyReleased(evt);
            }
        });

        jLabel93.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel93.setForeground(new java.awt.Color(102, 102, 102));
        jLabel93.setText("R$ 0,01");
        jLabel93.setRequestFocusEnabled(false);

        lblP001.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblP001.setForeground(new java.awt.Color(255, 102, 51));
        lblP001.setText("R$ 0,00");
        lblP001.setRequestFocusEnabled(false);

        jLabel94.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel94.setForeground(new java.awt.Color(102, 102, 102));
        jLabel94.setText("R$ 0,05");
        jLabel94.setRequestFocusEnabled(false);

        lblP005.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblP005.setForeground(new java.awt.Color(255, 102, 51));
        lblP005.setText("R$ 0,00");
        lblP005.setRequestFocusEnabled(false);

        jLabel95.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel95.setForeground(new java.awt.Color(102, 102, 102));
        jLabel95.setText("R$ 0,10");
        jLabel95.setRequestFocusEnabled(false);

        lblP010.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblP010.setForeground(new java.awt.Color(255, 102, 51));
        lblP010.setText("R$ 0,00");
        lblP010.setRequestFocusEnabled(false);

        jLabel96.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel96.setForeground(new java.awt.Color(102, 102, 102));
        jLabel96.setText("R$ 0,25");
        jLabel96.setRequestFocusEnabled(false);

        lblP025.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblP025.setForeground(new java.awt.Color(255, 102, 51));
        lblP025.setText("R$ 0,00");
        lblP025.setRequestFocusEnabled(false);

        jLabel97.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel97.setForeground(new java.awt.Color(102, 102, 102));
        jLabel97.setText("R$ 0,50");
        jLabel97.setRequestFocusEnabled(false);

        lblP050.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblP050.setForeground(new java.awt.Color(255, 102, 51));
        lblP050.setText("R$ 0,00");
        lblP050.setRequestFocusEnabled(false);

        jLabel98.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel98.setForeground(new java.awt.Color(102, 102, 102));
        jLabel98.setText("R$ 1,00");
        jLabel98.setRequestFocusEnabled(false);

        lblP100.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblP100.setForeground(new java.awt.Color(255, 102, 51));
        lblP100.setText("R$ 0,00");
        lblP100.setRequestFocusEnabled(false);

        jLabel99.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel99.setForeground(new java.awt.Color(102, 102, 102));
        jLabel99.setText("R$ 2,00");
        jLabel99.setRequestFocusEnabled(false);

        jLabel100.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel100.setForeground(new java.awt.Color(102, 102, 102));
        jLabel100.setText("R$ 5,00");
        jLabel100.setRequestFocusEnabled(false);

        jLabel101.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel101.setForeground(new java.awt.Color(102, 102, 102));
        jLabel101.setText("R$ 10,00");
        jLabel101.setRequestFocusEnabled(false);

        jLabel102.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel102.setForeground(new java.awt.Color(102, 102, 102));
        jLabel102.setText("R$ 20,00");
        jLabel102.setRequestFocusEnabled(false);

        jLabel103.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel103.setForeground(new java.awt.Color(102, 102, 102));
        jLabel103.setText("R$ 50,00");
        jLabel103.setRequestFocusEnabled(false);

        jLabel104.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel104.setForeground(new java.awt.Color(102, 102, 102));
        jLabel104.setText("R$ 100,00");
        jLabel104.setRequestFocusEnabled(false);

        lblP10000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblP10000.setForeground(new java.awt.Color(255, 102, 51));
        lblP10000.setText("R$ 0,00");
        lblP10000.setRequestFocusEnabled(false);

        lblP5000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblP5000.setForeground(new java.awt.Color(255, 102, 51));
        lblP5000.setText("R$ 0,00");
        lblP5000.setRequestFocusEnabled(false);

        lblP2000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblP2000.setForeground(new java.awt.Color(255, 102, 51));
        lblP2000.setText("R$ 0,00");
        lblP2000.setRequestFocusEnabled(false);

        lblP1000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblP1000.setForeground(new java.awt.Color(255, 102, 51));
        lblP1000.setText("R$ 0,00");
        lblP1000.setRequestFocusEnabled(false);

        lblP500.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblP500.setForeground(new java.awt.Color(255, 102, 51));
        lblP500.setText("R$ 0,00");
        lblP500.setRequestFocusEnabled(false);

        lblP200.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblP200.setForeground(new java.awt.Color(255, 102, 51));
        lblP200.setText("R$ 0,00");
        lblP200.setRequestFocusEnabled(false);

        jLabel105.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel105.setForeground(new java.awt.Color(102, 102, 102));
        jLabel105.setText("Moeda");

        jLabel106.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel106.setForeground(new java.awt.Color(102, 102, 102));
        jLabel106.setText("Quantidade");

        jLabel107.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel107.setForeground(new java.awt.Color(102, 102, 102));
        jLabel107.setText("Valor");

        jLabel108.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel108.setForeground(new java.awt.Color(102, 102, 102));
        jLabel108.setText("Cedula");

        jLabel109.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel109.setForeground(new java.awt.Color(102, 102, 102));
        jLabel109.setText("Quantidade");

        jLabel110.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel110.setForeground(new java.awt.Color(102, 102, 102));
        jLabel110.setText("Valor");

        lblLimpaP.setFont(new java.awt.Font("Calibri", 2, 14)); // NOI18N
        lblLimpaP.setForeground(new java.awt.Color(102, 102, 102));
        lblLimpaP.setIcon(new javax.swing.ImageIcon(getClass().getResource("/scc/Imagens/draw_eraser.png"))); // NOI18N
        lblLimpaP.setText("Limpar");
        lblLimpaP.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        lblLimpaP.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblLimpaPMouseClicked(evt);
            }
        });

        lblTotal19.setFont(new java.awt.Font("Calibri", 2, 14)); // NOI18N
        lblTotal19.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal19.setText("Valor da Composição:");
        lblTotal19.setFocusable(false);
        lblTotal19.setRequestFocusEnabled(false);

        lblValorComposicaoPagamento.setFont(new java.awt.Font("Calibri", 2, 14)); // NOI18N
        lblValorComposicaoPagamento.setForeground(new java.awt.Color(51, 51, 51));
        lblValorComposicaoPagamento.setText("R$ 0,00");
        lblValorComposicaoPagamento.setFocusable(false);
        lblValorComposicaoPagamento.setRequestFocusEnabled(false);

        javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel10Layout.createSequentialGroup()
                        .addComponent(jLabel105)
                        .addGap(26, 26, 26)
                        .addComponent(jLabel106)
                        .addGap(50, 50, 50)
                        .addComponent(jLabel107)
                        .addGap(101, 101, 101)
                        .addComponent(jLabel108)
                        .addGap(28, 28, 28)
                        .addComponent(jLabel109)
                        .addGap(46, 46, 46)
                        .addComponent(jLabel110))
                    .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel10Layout.createSequentialGroup()
                            .addComponent(lblTotal19)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(lblValorComposicaoPagamento)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(lblLimpaP))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel10Layout.createSequentialGroup()
                            .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel93)
                                .addComponent(jLabel94)
                                .addComponent(jLabel95)
                                .addComponent(jLabel96)
                                .addComponent(jLabel97)
                                .addComponent(jLabel98))
                            .addGap(18, 18, 18)
                            .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(txtP001, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtP005, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtP010, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtP025, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtP050, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtP100, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(18, 18, 18)
                            .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(lblP050, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 111, Short.MAX_VALUE)
                                .addComponent(lblP025, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblP010, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblP005, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblP001, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblP100, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGap(18, 18, 18)
                            .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel99)
                                .addComponent(jLabel100)
                                .addComponent(jLabel101)
                                .addComponent(jLabel102)
                                .addComponent(jLabel103)
                                .addComponent(jLabel104))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(txtP200, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtP500, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtP1000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtP2000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtP5000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtP10000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(18, 18, 18)
                            .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(lblP200, javax.swing.GroupLayout.DEFAULT_SIZE, 125, Short.MAX_VALUE)
                                .addComponent(lblP500, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblP1000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblP2000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblP5000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblP10000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                        .addComponent(jSeparator15, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jSeparator17, javax.swing.GroupLayout.Alignment.LEADING)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addGap(13, 13, 13)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false)
                    .addComponent(jLabel105)
                    .addComponent(jLabel106)
                    .addComponent(jLabel107)
                    .addComponent(jLabel108)
                    .addComponent(jLabel109)
                    .addComponent(jLabel110))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel10Layout.createSequentialGroup()
                        .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtP200, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel99, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblP200, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtP500, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel100, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblP500, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtP1000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel101, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblP1000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtP2000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel102, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblP2000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel103, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtP5000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblP5000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel104, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtP10000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblP10000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel10Layout.createSequentialGroup()
                        .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel93, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtP001, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblP001, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel94, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtP005, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblP005, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel95, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblP010, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtP010, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel96, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblP025, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtP025, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel97, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtP050, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblP050, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel98, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtP100, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblP100, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jSeparator17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblTotal19)
                    .addComponent(lblValorComposicaoPagamento)
                    .addComponent(lblLimpaP))
                .addContainerGap())
        );

        lblTotal31.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        lblTotal31.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal31.setText("Observação:");

        textAreaObservacaoP.setColumns(20);
        textAreaObservacaoP.setDocument(new FixedLengthDocument(500));
        textAreaObservacaoP.setFont(new java.awt.Font("Tahoma", 0, 13)); // NOI18N
        textAreaObservacaoP.setForeground(new java.awt.Color(51, 51, 51));
        textAreaObservacaoP.setLineWrap(true);
        textAreaObservacaoP.setRows(5);
        textAreaObservacaoP.setWrapStyleWord(true);
        textAreaObservacaoP.setMaximumSize(new java.awt.Dimension(224, 68));
        textAreaObservacaoP.setMinimumSize(new java.awt.Dimension(224, 68));

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jpPagamentosDiversos, org.jdesktop.beansbinding.ELProperty.create("${enabled}"), textAreaObservacaoP, org.jdesktop.beansbinding.BeanProperty.create("enabled"));
        bindingGroup.addBinding(binding);

        textAreaObservacaoP.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                textAreaObservacaoPKeyTyped(evt);
            }
        });
        jScrollPane7.setViewportView(textAreaObservacaoP);

        lblTotal32.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        lblTotal32.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal32.setText("500 caracteres.");

        lblTotal33.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        lblTotal33.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal33.setText("Restando:");

        lblRestanteP.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        lblRestanteP.setForeground(new java.awt.Color(102, 102, 102));
        lblRestanteP.setText("500");

        javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblTotal31)
                    .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 496, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(jPanel11Layout.createSequentialGroup()
                            .addComponent(lblTotal32)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(lblTotal33)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(lblRestanteP))))
                .addGap(426, 426, 426))
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addGap(5, 5, 5)
                .addComponent(lblTotal31)
                .addGap(1, 1, 1)
                .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(1, 1, 1)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblTotal32)
                    .addComponent(lblTotal33)
                    .addComponent(lblRestanteP))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        btRegistrarPagamento.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        btRegistrarPagamento.setForeground(new java.awt.Color(51, 51, 51));
        btRegistrarPagamento.setText("Registrar Pagamento");
        btRegistrarPagamento.setMaximumSize(new java.awt.Dimension(99, 30));
        btRegistrarPagamento.setMinimumSize(new java.awt.Dimension(99, 30));
        btRegistrarPagamento.setPreferredSize(new java.awt.Dimension(99, 30));

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jpPagamentosDiversos, org.jdesktop.beansbinding.ELProperty.create("${enabled}"), btRegistrarPagamento, org.jdesktop.beansbinding.BeanProperty.create("enabled"));
        bindingGroup.addBinding(binding);

        btRegistrarPagamento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btRegistrarPagamentoActionPerformed(evt);
            }
        });

        lblTitulo.setFont(new java.awt.Font("Calibri", 1, 18)); // NOI18N
        lblTitulo.setForeground(new java.awt.Color(74, 139, 245));
        lblTitulo.setText("Pagamentos Diversos");
        lblTitulo.setFocusable(false);
        lblTitulo.setRequestFocusEnabled(false);

        javax.swing.GroupLayout jpPagamentosDiversosLayout = new javax.swing.GroupLayout(jpPagamentosDiversos);
        jpPagamentosDiversos.setLayout(jpPagamentosDiversosLayout);
        jpPagamentosDiversosLayout.setHorizontalGroup(
            jpPagamentosDiversosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpPagamentosDiversosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpPagamentosDiversosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel10, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jSeparator18)
                    .addComponent(pSuperior3, javax.swing.GroupLayout.DEFAULT_SIZE, 932, Short.MAX_VALUE)
                    .addGroup(jpPagamentosDiversosLayout.createSequentialGroup()
                        .addGroup(jpPagamentosDiversosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblTitulo)
                            .addComponent(btRegistrarPagamento, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jpPagamentosDiversosLayout.setVerticalGroup(
            jpPagamentosDiversosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpPagamentosDiversosLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addComponent(lblTitulo)
                .addGap(1, 1, 1)
                .addComponent(jSeparator18, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pSuperior3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(btRegistrarPagamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(23, Short.MAX_VALUE))
        );

        tabLancamento.addTab("Pagamentos Diversos", jpPagamentosDiversos);

        javax.swing.GroupLayout abaLancamentoLayout = new javax.swing.GroupLayout(abaLancamento);
        abaLancamento.setLayout(abaLancamentoLayout);
        abaLancamentoLayout.setHorizontalGroup(
            abaLancamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(tabLancamento)
        );
        abaLancamentoLayout.setVerticalGroup(
            abaLancamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(abaLancamentoLayout.createSequentialGroup()
                .addComponent(tabLancamento, javax.swing.GroupLayout.PREFERRED_SIZE, 662, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 60, Short.MAX_VALUE))
        );

        tabLancamento.getAccessibleContext().setAccessibleName("Efetuar Lançamento");

        tabPrincipal.addTab("Efetuar Lançamentos", abaLancamento);

        abaListaLancamentos.setBackground(new java.awt.Color(255, 255, 255));

        jPanel6.setBackground(new java.awt.Color(245, 245, 245));

        btEstornar.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
        btEstornar.setForeground(new java.awt.Color(51, 51, 51));
        btEstornar.setText("Estornar seleção");
        btEstornar.setMargin(new java.awt.Insets(2, 2, 2, 2));
        btEstornar.setMaximumSize(new java.awt.Dimension(108, 30));
        btEstornar.setMinimumSize(new java.awt.Dimension(108, 30));
        btEstornar.setPreferredSize(new java.awt.Dimension(108, 30));
        btEstornar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btEstornarActionPerformed(evt);
            }
        });

        btVisualizarLancamento.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
        btVisualizarLancamento.setForeground(new java.awt.Color(51, 51, 51));
        btVisualizarLancamento.setText("Visualizar");
        btVisualizarLancamento.setMargin(new java.awt.Insets(2, 2, 2, 2));
        btVisualizarLancamento.setMaximumSize(new java.awt.Dimension(108, 30));
        btVisualizarLancamento.setMinimumSize(new java.awt.Dimension(108, 30));
        btVisualizarLancamento.setPreferredSize(new java.awt.Dimension(108, 30));
        btVisualizarLancamento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btVisualizarLancamentoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(btVisualizarLancamento, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(btEstornar, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(516, Short.MAX_VALUE))
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btEstornar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btVisualizarLancamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        tableLancamento.setAutoCreateRowSorter(true);
        tableLancamento.setBackground(new java.awt.Color(245, 245, 245));
        tableLancamento.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        tableLancamento.setForeground(new java.awt.Color(51, 51, 51));
        tableLancamento.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Seq.", "Data/Hora", "Tipo", "Tipo (Descrição)", "Valor", "Retorno", "Status"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tableLancamento.setGridColor(java.awt.Color.lightGray);
        tableLancamento.setOpaque(false);
        tableLancamento.setRowHeight(30);
        tableLancamento.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        tableLancamento.getTableHeader().setReorderingAllowed(false);
        jScrollPane4.setViewportView(tableLancamento);
        tableLancamento.getColumnModel().getColumn(0).setResizable(false);
        tableLancamento.getColumnModel().getColumn(0).setPreferredWidth(15);
        tableLancamento.getColumnModel().getColumn(1).setResizable(false);
        tableLancamento.getColumnModel().getColumn(1).setPreferredWidth(20);
        tableLancamento.getColumnModel().getColumn(2).setResizable(false);
        tableLancamento.getColumnModel().getColumn(3).setResizable(false);
        tableLancamento.getColumnModel().getColumn(3).setPreferredWidth(50);
        tableLancamento.getColumnModel().getColumn(4).setResizable(false);
        tableLancamento.getColumnModel().getColumn(4).setPreferredWidth(10);
        tableLancamento.getColumnModel().getColumn(5).setResizable(false);
        tableLancamento.getColumnModel().getColumn(5).setPreferredWidth(5);
        tableLancamento.getColumnModel().getColumn(6).setResizable(false);

        javax.swing.GroupLayout abaListaLancamentosLayout = new javax.swing.GroupLayout(abaListaLancamentos);
        abaListaLancamentos.setLayout(abaListaLancamentosLayout);
        abaListaLancamentosLayout.setHorizontalGroup(
            abaListaLancamentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(abaListaLancamentosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(abaListaLancamentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 796, Short.MAX_VALUE)
                    .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(151, Short.MAX_VALUE))
        );
        abaListaLancamentosLayout.setVerticalGroup(
            abaListaLancamentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(abaListaLancamentosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 537, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(116, 116, 116))
        );

        tabPrincipal.addTab("Listar Lançamentos", abaListaLancamentos);

        jpGerarMalote.setBackground(new java.awt.Color(255, 255, 255));

        pSuperior2.setPreferredSize(new java.awt.Dimension(660, 60));

        lblTotal39.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        lblTotal39.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal39.setText("N. Guia (GTV):");

        txtGuia.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        txtGuia.setForeground(new java.awt.Color(51, 51, 51));
        txtGuia.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtGuia.setMinimumSize(new java.awt.Dimension(6, 25));
        txtGuia.setPreferredSize(new java.awt.Dimension(59, 25));
        txtGuia.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtGuiaFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtGuiaFocusLost(evt);
            }
        });

        txtMalote.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        txtMalote.setForeground(new java.awt.Color(51, 51, 51));
        txtMalote.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtMalote.setMinimumSize(new java.awt.Dimension(6, 25));
        txtMalote.setPreferredSize(new java.awt.Dimension(59, 25));
        txtMalote.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtMaloteFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtMaloteFocusLost(evt);
            }
        });

        lblTotal40.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        lblTotal40.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal40.setText("N. Malote:");

        lblTotal41.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        lblTotal41.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal41.setText("Conta Corrente:");

        cbContaCorrente.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        cbContaCorrente.setForeground(new java.awt.Color(51, 51, 51));
        cbContaCorrente.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Selecione" }));
        cbContaCorrente.setMinimumSize(new java.awt.Dimension(196, 25));
        cbContaCorrente.setPreferredSize(new java.awt.Dimension(196, 25));

        lblTotal42.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        lblTotal42.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal42.setText("Transportadora:");

        cbTransportadora.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        cbTransportadora.setForeground(new java.awt.Color(51, 51, 51));
        cbTransportadora.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Selecione" }));
        cbTransportadora.setMinimumSize(new java.awt.Dimension(196, 25));
        cbTransportadora.setPreferredSize(new java.awt.Dimension(196, 25));

        javax.swing.GroupLayout pSuperior2Layout = new javax.swing.GroupLayout(pSuperior2);
        pSuperior2.setLayout(pSuperior2Layout);
        pSuperior2Layout.setHorizontalGroup(
            pSuperior2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pSuperior2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pSuperior2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtGuia, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblTotal39))
                .addGap(18, 18, 18)
                .addGroup(pSuperior2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtMalote, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblTotal40))
                .addGap(18, 18, 18)
                .addGroup(pSuperior2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblTotal41)
                    .addComponent(cbContaCorrente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(pSuperior2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblTotal42)
                    .addComponent(cbTransportadora, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(126, Short.MAX_VALUE))
        );
        pSuperior2Layout.setVerticalGroup(
            pSuperior2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pSuperior2Layout.createSequentialGroup()
                .addGap(5, 5, 5)
                .addGroup(pSuperior2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(pSuperior2Layout.createSequentialGroup()
                        .addComponent(lblTotal42)
                        .addGap(1, 1, 1)
                        .addComponent(cbTransportadora, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(pSuperior2Layout.createSequentialGroup()
                        .addGroup(pSuperior2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblTotal39)
                            .addComponent(lblTotal40)
                            .addComponent(lblTotal41))
                        .addGap(1, 1, 1)
                        .addGroup(pSuperior2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtGuia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtMalote, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cbContaCorrente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap())
        );

        jPanel5.setPreferredSize(new java.awt.Dimension(925, 311));

        txtS001.setColumns(15);
        txtS001.setForeground(new java.awt.Color(51, 51, 51));
        txtS001.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtS001.setText("0");
        txtS001.setToolTipText("Digite a Quantidade!");
        txtS001.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtS001.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtS001.setMaximumSize(new java.awt.Dimension(85, 21));
        txtS001.setMinimumSize(new java.awt.Dimension(85, 21));
        txtS001.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtSFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtSFocusLost(evt);
            }
        });
        txtS001.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtSKeyReleased(evt);
            }
        });

        txtS005.setColumns(15);
        txtS005.setForeground(new java.awt.Color(51, 51, 51));
        txtS005.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtS005.setText("0");
        txtS005.setToolTipText("Digite a Quantidade!");
        txtS005.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtS005.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtS005.setMaximumSize(new java.awt.Dimension(85, 21));
        txtS005.setMinimumSize(new java.awt.Dimension(85, 21));
        txtS005.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtSFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtSFocusLost(evt);
            }
        });
        txtS005.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtSKeyReleased(evt);
            }
        });

        txtS010.setColumns(15);
        txtS010.setForeground(new java.awt.Color(51, 51, 51));
        txtS010.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtS010.setText("0");
        txtS010.setToolTipText("Digite a Quantidade!");
        txtS010.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtS010.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtS010.setMaximumSize(new java.awt.Dimension(85, 21));
        txtS010.setMinimumSize(new java.awt.Dimension(85, 21));
        txtS010.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtSFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtSFocusLost(evt);
            }
        });
        txtS010.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtSKeyReleased(evt);
            }
        });

        txtS025.setColumns(15);
        txtS025.setForeground(new java.awt.Color(51, 51, 51));
        txtS025.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtS025.setText("0");
        txtS025.setToolTipText("Digite a Quantidade!");
        txtS025.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtS025.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtS025.setMaximumSize(new java.awt.Dimension(85, 21));
        txtS025.setMinimumSize(new java.awt.Dimension(85, 21));
        txtS025.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtSFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtSFocusLost(evt);
            }
        });
        txtS025.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtSKeyReleased(evt);
            }
        });

        txtS100.setColumns(15);
        txtS100.setForeground(new java.awt.Color(51, 51, 51));
        txtS100.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtS100.setText("0");
        txtS100.setToolTipText("Digite a Quantidade!");
        txtS100.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtS100.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtS100.setMaximumSize(new java.awt.Dimension(85, 21));
        txtS100.setMinimumSize(new java.awt.Dimension(85, 21));
        txtS100.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtSFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtSFocusLost(evt);
            }
        });
        txtS100.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtSKeyReleased(evt);
            }
        });

        txtS050.setColumns(15);
        txtS050.setForeground(new java.awt.Color(51, 51, 51));
        txtS050.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtS050.setText("0");
        txtS050.setToolTipText("Digite a Quantidade!");
        txtS050.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtS050.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtS050.setMaximumSize(new java.awt.Dimension(85, 21));
        txtS050.setMinimumSize(new java.awt.Dimension(85, 21));
        txtS050.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtSFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtSFocusLost(evt);
            }
        });
        txtS050.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtSKeyReleased(evt);
            }
        });

        txtS10000.setColumns(15);
        txtS10000.setForeground(new java.awt.Color(51, 51, 51));
        txtS10000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtS10000.setText("0");
        txtS10000.setToolTipText("Digite a Quantidade!");
        txtS10000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtS10000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtS10000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtS10000.setMinimumSize(new java.awt.Dimension(85, 21));
        txtS10000.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtSFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtSFocusLost(evt);
            }
        });
        txtS10000.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtSKeyReleased(evt);
            }
        });

        txtS5000.setColumns(15);
        txtS5000.setForeground(new java.awt.Color(51, 51, 51));
        txtS5000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtS5000.setText("0");
        txtS5000.setToolTipText("Digite a Quantidade!");
        txtS5000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtS5000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtS5000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtS5000.setMinimumSize(new java.awt.Dimension(85, 21));
        txtS5000.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtSFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtSFocusLost(evt);
            }
        });
        txtS5000.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtSKeyReleased(evt);
            }
        });

        txtS2000.setColumns(15);
        txtS2000.setForeground(new java.awt.Color(51, 51, 51));
        txtS2000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtS2000.setText("0");
        txtS2000.setToolTipText("Digite a Quantidade!");
        txtS2000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtS2000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtS2000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtS2000.setMinimumSize(new java.awt.Dimension(85, 21));
        txtS2000.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtSFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtSFocusLost(evt);
            }
        });
        txtS2000.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtSKeyReleased(evt);
            }
        });

        txtS1000.setColumns(15);
        txtS1000.setForeground(new java.awt.Color(51, 51, 51));
        txtS1000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtS1000.setText("0");
        txtS1000.setToolTipText("Digite a Quantidade!");
        txtS1000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtS1000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtS1000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtS1000.setMinimumSize(new java.awt.Dimension(85, 21));
        txtS1000.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtSFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtSFocusLost(evt);
            }
        });
        txtS1000.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtSKeyReleased(evt);
            }
        });

        txtS500.setColumns(15);
        txtS500.setForeground(new java.awt.Color(51, 51, 51));
        txtS500.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtS500.setText("0");
        txtS500.setToolTipText("Digite a Quantidade!");
        txtS500.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtS500.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtS500.setMaximumSize(new java.awt.Dimension(85, 21));
        txtS500.setMinimumSize(new java.awt.Dimension(85, 21));
        txtS500.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtSFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtSFocusLost(evt);
            }
        });
        txtS500.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtSKeyReleased(evt);
            }
        });

        txtS200.setColumns(15);
        txtS200.setForeground(new java.awt.Color(51, 51, 51));
        txtS200.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtS200.setText("0");
        txtS200.setToolTipText("Digite a Quantidade!");
        txtS200.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtS200.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtS200.setMaximumSize(new java.awt.Dimension(85, 21));
        txtS200.setMinimumSize(new java.awt.Dimension(85, 21));
        txtS200.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtSFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtSFocusLost(evt);
            }
        });
        txtS200.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txtSKeyReleased(evt);
            }
        });

        jLabel57.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel57.setForeground(new java.awt.Color(102, 102, 102));
        jLabel57.setText("R$ 0,01");
        jLabel57.setRequestFocusEnabled(false);

        lblS001.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblS001.setForeground(new java.awt.Color(255, 102, 51));
        lblS001.setText("R$ 0,00");
        lblS001.setRequestFocusEnabled(false);

        jLabel58.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel58.setForeground(new java.awt.Color(102, 102, 102));
        jLabel58.setText("R$ 0,05");
        jLabel58.setRequestFocusEnabled(false);

        lblS005.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblS005.setForeground(new java.awt.Color(255, 102, 51));
        lblS005.setText("R$ 0,00");
        lblS005.setRequestFocusEnabled(false);

        jLabel59.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel59.setForeground(new java.awt.Color(102, 102, 102));
        jLabel59.setText("R$ 0,10");
        jLabel59.setRequestFocusEnabled(false);

        lblS010.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblS010.setForeground(new java.awt.Color(255, 102, 51));
        lblS010.setText("R$ 0,00");
        lblS010.setRequestFocusEnabled(false);

        jLabel60.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel60.setForeground(new java.awt.Color(102, 102, 102));
        jLabel60.setText("R$ 0,25");
        jLabel60.setRequestFocusEnabled(false);

        lblS025.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblS025.setForeground(new java.awt.Color(255, 102, 51));
        lblS025.setText("R$ 0,00");
        lblS025.setRequestFocusEnabled(false);

        jLabel61.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel61.setForeground(new java.awt.Color(102, 102, 102));
        jLabel61.setText("R$ 0,50");
        jLabel61.setRequestFocusEnabled(false);

        lblS050.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblS050.setForeground(new java.awt.Color(255, 102, 51));
        lblS050.setText("R$ 0,00");
        lblS050.setRequestFocusEnabled(false);

        jLabel62.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel62.setForeground(new java.awt.Color(102, 102, 102));
        jLabel62.setText("R$ 1,00");
        jLabel62.setRequestFocusEnabled(false);

        lblS100.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblS100.setForeground(new java.awt.Color(255, 102, 51));
        lblS100.setText("R$ 0,00");
        lblS100.setRequestFocusEnabled(false);

        jLabel63.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel63.setForeground(new java.awt.Color(102, 102, 102));
        jLabel63.setText("R$ 2,00");
        jLabel63.setRequestFocusEnabled(false);

        jLabel64.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel64.setForeground(new java.awt.Color(102, 102, 102));
        jLabel64.setText("R$ 5,00");
        jLabel64.setRequestFocusEnabled(false);

        jLabel65.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel65.setForeground(new java.awt.Color(102, 102, 102));
        jLabel65.setText("R$ 10,00");
        jLabel65.setRequestFocusEnabled(false);

        jLabel66.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel66.setForeground(new java.awt.Color(102, 102, 102));
        jLabel66.setText("R$ 20,00");
        jLabel66.setRequestFocusEnabled(false);

        jLabel67.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel67.setForeground(new java.awt.Color(102, 102, 102));
        jLabel67.setText("R$ 50,00");
        jLabel67.setRequestFocusEnabled(false);

        jLabel68.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel68.setForeground(new java.awt.Color(102, 102, 102));
        jLabel68.setText("R$ 100,00");
        jLabel68.setRequestFocusEnabled(false);

        lblS10000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblS10000.setForeground(new java.awt.Color(255, 102, 51));
        lblS10000.setText("R$ 0,00");
        lblS10000.setRequestFocusEnabled(false);

        lblS5000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblS5000.setForeground(new java.awt.Color(255, 102, 51));
        lblS5000.setText("R$ 0,00");
        lblS5000.setRequestFocusEnabled(false);

        lblS2000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblS2000.setForeground(new java.awt.Color(255, 102, 51));
        lblS2000.setText("R$ 0,00");
        lblS2000.setRequestFocusEnabled(false);

        lblS1000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblS1000.setForeground(new java.awt.Color(255, 102, 51));
        lblS1000.setText("R$ 0,00");
        lblS1000.setRequestFocusEnabled(false);

        lblS500.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblS500.setForeground(new java.awt.Color(255, 102, 51));
        lblS500.setText("R$ 0,00");
        lblS500.setRequestFocusEnabled(false);

        lblS200.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblS200.setForeground(new java.awt.Color(255, 102, 51));
        lblS200.setText("R$ 0,00");
        lblS200.setRequestFocusEnabled(false);

        jLabel69.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel69.setForeground(new java.awt.Color(102, 102, 102));
        jLabel69.setText("Moeda");

        jLabel70.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel70.setForeground(new java.awt.Color(102, 102, 102));
        jLabel70.setText("Quantidade");

        jLabel71.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel71.setForeground(new java.awt.Color(102, 102, 102));
        jLabel71.setText("Valor");

        jLabel72.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel72.setForeground(new java.awt.Color(102, 102, 102));
        jLabel72.setText("Cedula");

        jLabel73.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel73.setForeground(new java.awt.Color(102, 102, 102));
        jLabel73.setText("Quantidade");

        jLabel74.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        jLabel74.setForeground(new java.awt.Color(102, 102, 102));
        jLabel74.setText("Valor");

        lblLimpaS.setFont(new java.awt.Font("Calibri", 2, 14)); // NOI18N
        lblLimpaS.setForeground(new java.awt.Color(102, 102, 102));
        lblLimpaS.setIcon(new javax.swing.ImageIcon(getClass().getResource("/scc/Imagens/draw_eraser.png"))); // NOI18N
        lblLimpaS.setText("Limpar");
        lblLimpaS.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        lblLimpaS.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblLimpaSMouseClicked(evt);
            }
        });

        lblTotal30.setFont(new java.awt.Font("Calibri", 2, 14)); // NOI18N
        lblTotal30.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal30.setText("Valor da Composição:");
        lblTotal30.setFocusable(false);
        lblTotal30.setRequestFocusEnabled(false);

        lblValorComposicaoMalote.setFont(new java.awt.Font("Calibri", 2, 14)); // NOI18N
        lblValorComposicaoMalote.setForeground(new java.awt.Color(51, 51, 51));
        lblValorComposicaoMalote.setText("R$ 0,00");
        lblValorComposicaoMalote.setFocusable(false);
        lblValorComposicaoMalote.setRequestFocusEnabled(false);

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addComponent(jLabel69)
                        .addGap(26, 26, 26)
                        .addComponent(jLabel70)
                        .addGap(48, 48, 48)
                        .addComponent(jLabel71)
                        .addGap(104, 104, 104)
                        .addComponent(jLabel72)
                        .addGap(28, 28, 28)
                        .addComponent(jLabel73)
                        .addGap(44, 44, 44)
                        .addComponent(jLabel74))
                    .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addGroup(jPanel5Layout.createSequentialGroup()
                            .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel57)
                                .addComponent(jLabel58)
                                .addComponent(jLabel59)
                                .addComponent(jLabel60)
                                .addComponent(jLabel61)
                                .addComponent(jLabel62))
                            .addGap(18, 18, 18)
                            .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(txtS001, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtS005, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtS010, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtS025, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtS050, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtS100, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(18, 18, 18)
                            .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(lblS050, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 111, Short.MAX_VALUE)
                                .addComponent(lblS025, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblS010, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblS005, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblS001, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblS100, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGap(18, 18, 18)
                            .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel63)
                                .addComponent(jLabel64)
                                .addComponent(jLabel65)
                                .addComponent(jLabel66)
                                .addComponent(jLabel67)
                                .addComponent(jLabel68))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(txtS200, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtS500, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtS1000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtS2000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtS5000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtS10000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(18, 18, 18)
                            .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(lblS200, javax.swing.GroupLayout.DEFAULT_SIZE, 125, Short.MAX_VALUE)
                                .addComponent(lblS500, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblS1000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblS2000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblS5000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(lblS10000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                        .addComponent(jSeparator7)
                        .addComponent(jSeparator8)
                        .addGroup(jPanel5Layout.createSequentialGroup()
                            .addComponent(lblTotal30)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(lblValorComposicaoMalote)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(lblLimpaS))))
                .addContainerGap(345, Short.MAX_VALUE))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGap(13, 13, 13)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false)
                    .addComponent(jLabel69)
                    .addComponent(jLabel70)
                    .addComponent(jLabel71)
                    .addComponent(jLabel72)
                    .addComponent(jLabel73)
                    .addComponent(jLabel74))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel57, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtS001, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblS001, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel58, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtS005, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblS005, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel59, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblS010, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtS010, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel60, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblS025, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtS025, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel61, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtS050, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblS050, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel62, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtS100, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblS100, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGap(3, 3, 3)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtS200, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel63, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblS200, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtS500, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel64, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblS500, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtS1000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel65, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblS1000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtS2000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel66, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblS2000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel67, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtS5000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblS5000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel68, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtS10000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblS10000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jSeparator8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lblTotal30)
                        .addComponent(lblValorComposicaoMalote))
                    .addComponent(lblLimpaS))
                .addContainerGap(19, Short.MAX_VALUE))
        );

        jPanel9.setPreferredSize(new java.awt.Dimension(925, 117));

        lblTotal15.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        lblTotal15.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal15.setText("Observação:");

        textAreaObservacaoMalote.setColumns(20);
        textAreaObservacaoMalote.setDocument(new FixedLengthDocument(500));
        textAreaObservacaoMalote.setFont(new java.awt.Font("Tahoma", 0, 13)); // NOI18N
        textAreaObservacaoMalote.setForeground(new java.awt.Color(51, 51, 51));
        textAreaObservacaoMalote.setLineWrap(true);
        textAreaObservacaoMalote.setRows(5);
        textAreaObservacaoMalote.setWrapStyleWord(true);
        textAreaObservacaoMalote.setMaximumSize(new java.awt.Dimension(224, 68));
        textAreaObservacaoMalote.setMinimumSize(new java.awt.Dimension(224, 68));
        textAreaObservacaoMalote.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                textAreaObservacaoMaloteKeyTyped(evt);
            }
        });
        jScrollPane5.setViewportView(textAreaObservacaoMalote);

        lblTotal16.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        lblTotal16.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal16.setText("500 caracteres.");

        lblTotal17.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        lblTotal17.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal17.setText("Restando:");

        lblRestanteS.setFont(new java.awt.Font("Calibri", 2, 12)); // NOI18N
        lblRestanteS.setForeground(new java.awt.Color(102, 102, 102));
        lblRestanteS.setText("500");

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblTotal15)
                    .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 496, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(jPanel9Layout.createSequentialGroup()
                            .addComponent(lblTotal16)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(lblTotal17)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(lblRestanteS))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addGap(5, 5, 5)
                .addComponent(lblTotal15)
                .addGap(1, 1, 1)
                .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(1, 1, 1)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblTotal16)
                    .addComponent(lblTotal17)
                    .addComponent(lblRestanteS)))
        );

        lblTotal18.setFont(new java.awt.Font("Calibri", 1, 18)); // NOI18N
        lblTotal18.setForeground(new java.awt.Color(74, 139, 245));
        lblTotal18.setText("Gerar Malote");
        lblTotal18.setFocusable(false);
        lblTotal18.setRequestFocusEnabled(false);

        btRegistrarMalote.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        btRegistrarMalote.setForeground(new java.awt.Color(51, 51, 51));
        btRegistrarMalote.setIcon(new javax.swing.ImageIcon(getClass().getResource("/scc/Imagens/Money-icon.png"))); // NOI18N
        btRegistrarMalote.setText("Gerar Malote");
        btRegistrarMalote.setMaximumSize(new java.awt.Dimension(99, 30));
        btRegistrarMalote.setMinimumSize(new java.awt.Dimension(99, 30));
        btRegistrarMalote.setPreferredSize(new java.awt.Dimension(99, 30));
        btRegistrarMalote.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btRegistrarMaloteActionPerformed(evt);
            }
        });

        jPanel12.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Pagamentos Pendentes de Envio", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Calibri", 0, 12), new java.awt.Color(102, 102, 102))); // NOI18N
        jPanel12.setMinimumSize(new java.awt.Dimension(100, 50));
        jPanel12.setPreferredSize(new java.awt.Dimension(281, 75));

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, rbTipoPagamento, org.jdesktop.beansbinding.ELProperty.create("${selected}"), listPagamentos, org.jdesktop.beansbinding.BeanProperty.create("enabled"));
        bindingGroup.addBinding(binding);

        listPagamentos.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                listPagamentosValueChanged(evt);
            }
        });
        jScrollPane1.setViewportView(listPagamentos);

        lblTotal34.setFont(new java.awt.Font("Calibri", 2, 14)); // NOI18N
        lblTotal34.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal34.setText("Valor de Pagamento:");
        lblTotal34.setFocusable(false);
        lblTotal34.setRequestFocusEnabled(false);

        lblValorTotalPagamentos.setFont(new java.awt.Font("Calibri", 2, 14)); // NOI18N
        lblValorTotalPagamentos.setForeground(new java.awt.Color(51, 51, 51));
        lblValorTotalPagamentos.setText("R$ 0,00");
        lblValorTotalPagamentos.setFocusable(false);
        lblValorTotalPagamentos.setRequestFocusEnabled(false);

        javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
        jPanel12.setLayout(jPanel12Layout);
        jPanel12Layout.setHorizontalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 266, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(lblTotal34)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(lblValorTotalPagamentos)
                .addContainerGap())
        );
        jPanel12Layout.setVerticalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel12Layout.createSequentialGroup()
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lblTotal34)
                        .addComponent(lblValorTotalPagamentos))
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(5, 5, 5))
        );

        jPanel14.setPreferredSize(new java.awt.Dimension(155, 60));

        bgTipoMalote.add(rbTipoSangria);
        rbTipoSangria.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        rbTipoSangria.setForeground(new java.awt.Color(102, 102, 102));
        rbTipoSangria.setSelected(true);
        rbTipoSangria.setText("Sangria");
        rbTipoSangria.setVerticalTextPosition(javax.swing.SwingConstants.TOP);

        bgTipoMalote.add(rbTipoPagamento);
        rbTipoPagamento.setFont(new java.awt.Font("Calibri", 0, 12)); // NOI18N
        rbTipoPagamento.setForeground(new java.awt.Color(102, 102, 102));
        rbTipoPagamento.setText("Pagamentos Diversos");
        rbTipoPagamento.setVerticalTextPosition(javax.swing.SwingConstants.TOP);

        javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);
        jPanel14.setLayout(jPanel14Layout);
        jPanel14Layout.setHorizontalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(rbTipoSangria)
                    .addComponent(rbTipoPagamento))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel14Layout.setVerticalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel14Layout.createSequentialGroup()
                .addGap(0, 9, Short.MAX_VALUE)
                .addComponent(rbTipoSangria)
                .addGap(1, 1, 1)
                .addComponent(rbTipoPagamento))
        );

        javax.swing.GroupLayout jpGerarMaloteLayout = new javax.swing.GroupLayout(jpGerarMalote);
        jpGerarMalote.setLayout(jpGerarMaloteLayout);
        jpGerarMaloteLayout.setHorizontalGroup(
            jpGerarMaloteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpGerarMaloteLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpGerarMaloteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 937, Short.MAX_VALUE)
                    .addComponent(jSeparator11)
                    .addComponent(jPanel9, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 937, Short.MAX_VALUE)
                    .addGroup(jpGerarMaloteLayout.createSequentialGroup()
                        .addGroup(jpGerarMaloteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblTotal18)
                            .addComponent(btRegistrarMalote, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(jpGerarMaloteLayout.createSequentialGroup()
                        .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(pSuperior2, javax.swing.GroupLayout.DEFAULT_SIZE, 776, Short.MAX_VALUE))
                    .addComponent(jPanel12, javax.swing.GroupLayout.DEFAULT_SIZE, 937, Short.MAX_VALUE))
                .addContainerGap())
        );
        jpGerarMaloteLayout.setVerticalGroup(
            jpGerarMaloteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpGerarMaloteLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addComponent(lblTotal18)
                .addGap(1, 1, 1)
                .addComponent(jSeparator11, javax.swing.GroupLayout.PREFERRED_SIZE, 5, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jpGerarMaloteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(pSuperior2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btRegistrarMalote, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(29, 29, 29))
        );

        tabPrincipal.addTab("Gerar Malote", jpGerarMalote);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(tabPrincipal)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(tabPrincipal)
        );

        bindingGroup.bind();

        setBounds(0, 0, 971, 753);
    }// </editor-fold>//GEN-END:initComponents
         
    private void txtManipuladorLimpaQuandoZera(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtManipuladorLimpaQuandoZera
        manipuladorLimpaSelecaoQuandoZero(evt);
    }//GEN-LAST:event_txtManipuladorLimpaQuandoZera

    private void txtManipuladorZeraQuandoVazio(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtManipuladorZeraQuandoVazio
        manipuladorRetornaZeroQuandoVazio(evt);
    }//GEN-LAST:event_txtManipuladorZeraQuandoVazio

    private void lblLimpaLMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblLimpaLMouseClicked
        limpaCamposL();
    }//GEN-LAST:event_lblLimpaLMouseClicked
    
    private void limpaCamposL(){
        txtL001.setText("0");
        txtL005.setText("0");
        txtL010.setText("0");
        txtL025.setText("0");
        txtL050.setText("0");
        txtL100.setText("0");
        txtL200.setText("0");
        txtL500.setText("0");
        txtL1000.setText("0");
        txtL2000.setText("0");
        txtL5000.setText("0");
        txtL10000.setText("0");
        textAreaObservacaoL.setText("");
        atualizarValorComposicaoLancamento();    
}
    
    private void btRegistrarRetiradaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btRegistrarRetiradaActionPerformed
        
        //Obtem o saldo da quantidade de cada especie
        int saldo001 = new Integer(txtQ001.getText());
        int saldo005 = new Integer(txtQ005.getText());
        int saldo010 = new Integer(txtQ010.getText());
        int saldo025 = new Integer(txtQ025.getText());
        int saldo050 = new Integer(txtQ050.getText());
        int saldo100 = new Integer(txtQ100.getText());
        int saldo200 = new Integer(txtQ200.getText());
        int saldo500 = new Integer(txtQ500.getText());
        int saldo1000 = new Integer(txtQ1000.getText());
        int saldo2000 = new Integer(txtQ2000.getText());
        int saldo5000 = new Integer(txtQ5000.getText());
        int saldo10000 = new Integer(txtQ10000.getText());
        
        //Obtem a quantidade de cada especie solicitada
        int lancamento001 = new Integer(txtL001.getText());
        int lancamento005 = new Integer(txtL005.getText());
        int lancamento010 = new Integer(txtL010.getText());
        int lancamento025 = new Integer(txtL025.getText());
        int lancamento050 = new Integer(txtL050.getText());
        int lancamento100 = new Integer(txtL100.getText());
        int lancamento200 = new Integer(txtL200.getText());
        int lancamento500 = new Integer(txtL500.getText());
        int lancamento1000 = new Integer(txtL1000.getText());
        int lancamento2000 = new Integer(txtL2000.getText());
        int lancamento5000 = new Integer(txtL5000.getText());
        int lancamento10000 = new Integer(txtL10000.getText());
        
        //verifica se os campos quantidade estão zerados
        if (lancamento001+lancamento005+lancamento010+lancamento025+lancamento050+lancamento100+lancamento200+lancamento500+lancamento1000+lancamento2000+lancamento5000+lancamento10000 == 0) {
            JOptionPane.showMessageDialog(this, "Informe a quantidade!");
            return;
        }        
        
        //verifica se há saldo disponível em cada espécie
        if (1==1) {
            boolean saldoInsuficiente = false;
            if (saldo001 < lancamento001 ) {
                BalloonTip balloon = new BalloonTip(txtL001, "Saldo atual: " + saldo001);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo005 < lancamento005 ) {
                BalloonTip balloon = new BalloonTip(txtL005, "Saldo atual: " + saldo005);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo010 < lancamento010 ) {
                BalloonTip balloon = new BalloonTip(txtL010, "Saldo atual: " + saldo010);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo025 < lancamento025 ) {
                BalloonTip balloon = new BalloonTip(txtL025, "Saldo atual: " + saldo025);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo050 < lancamento050 ) {
                BalloonTip balloon = new BalloonTip(txtL050, "Saldo atual: " + saldo050);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo100 < lancamento100 ) {
                BalloonTip balloon = new BalloonTip(txtL100, "Saldo atual: " + saldo100);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo200 < lancamento200 ) {
                BalloonTip balloon = new BalloonTip(txtL200, "Saldo atual: " + saldo200);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo500 < lancamento500 ) {
                BalloonTip balloon = new BalloonTip(txtL500, "Saldo atual: " + saldo500);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo1000 < lancamento1000 ) {
                BalloonTip balloon = new BalloonTip(txtL1000, "Saldo atual: " + saldo1000);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo2000 < lancamento2000 ) {
                BalloonTip balloon = new BalloonTip(txtL2000, "Saldo atual: " + saldo2000);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo5000 < lancamento5000 ) {
                BalloonTip balloon = new BalloonTip(txtL5000, "Saldo atual: " + saldo5000);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo10000 < lancamento10000 ) {
                BalloonTip balloon = new BalloonTip(txtL10000, "Saldo atual: " + saldo10000);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }            
            if (saldoInsuficiente){
                JOptionPane.showMessageDialog(this, "Saldo insuficiente!");
                return;
            }
        }
        
        Lancamento lancamento = new Lancamento();
        List<Composicao> listaComposicaoLancamento = new ArrayList<Composicao>();        
        
        listaComposicaoLancamento.add(new Composicao(0.01, new Integer(txtL001.getText())*-1));
        listaComposicaoLancamento.add(new Composicao(0.05, new Integer(txtL005.getText())*-1));
        listaComposicaoLancamento.add(new Composicao(0.10, new Integer(txtL010.getText())*-1));
        listaComposicaoLancamento.add(new Composicao(0.25, new Integer(txtL025.getText())*-1));
        listaComposicaoLancamento.add(new Composicao(0.50, new Integer(txtL050.getText())*-1));
        listaComposicaoLancamento.add(new Composicao(1.00, new Integer(txtL100.getText())*-1));
        listaComposicaoLancamento.add(new Composicao(2.00, new Integer(txtL200.getText())*-1));
        listaComposicaoLancamento.add(new Composicao(5.00, new Integer(txtL500.getText())*-1));
        listaComposicaoLancamento.add(new Composicao(10.00, new Integer(txtL1000.getText())*-1));
        listaComposicaoLancamento.add(new Composicao(20.00, new Integer(txtL2000.getText())*-1));
        listaComposicaoLancamento.add(new Composicao(50.00, new Integer(txtL5000.getText())*-1));
        listaComposicaoLancamento.add(new Composicao(100.00, new Integer(txtL10000.getText())*-1));
        
        lancamento.setId_caixa(caixa.getId());
        lancamento.setId_praca(cbPraca.getSelectedIndex() + 1);
        lancamento.setId_tipo_lancamento(cbTipoLancamento.getSelectedIndex() + 1);
        lancamento.setObservacao(textAreaObservacaoL.getText());
        lancamento.setListaComposicao(listaComposicaoLancamento);
        
        try {
            dao.gravarLancamento(lancamento);
            JOptionPane.showMessageDialog(this, "Lancamento Registrado!", "Lancamento", JOptionPane.INFORMATION_MESSAGE);
            carregarComposicaoCaixa(caixa.getId());
            atualizarValorComposicaoCaixa();
            atualizarSaldos();
            limpaCamposL();
            carregarLancamentosEfetuados();
            
        } catch (SQLException ex) {
            Logger.getLogger(frmCaixa.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(this, "Erro ao Gravar lancamento!\nMotivo: " + ex, "Erro ao Gravar lancamento!", JOptionPane.ERROR_MESSAGE);
        }
        
    }//GEN-LAST:event_btRegistrarRetiradaActionPerformed

    private void btAbrirCaixaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btAbrirCaixaActionPerformed
        
        if (caixa.getStatus() == 0 && caixa.getId() != 0) {
            JOptionPane.showMessageDialog(this.getParent(), "Erro: Caixa Aberto. Favor contactar o Desenvolvedor do Sistema.", "Erro", JOptionPane.ERROR_MESSAGE);
            return;
        }
        
        if (!usuario.getLogin().equals("d")) {
               
            try {                        
                if (!dao.verificapermissaoAbrirCaixa()) {
                    JOptionPane.showMessageDialog(this.getParent(), "Já existe um Caixa para esse Turno!");
                    return;
                }
            } catch (SQLException ex) {
                Logger.getLogger(frmCaixa.class.getName()).log(Level.SEVERE, null, ex);
            }
        }        
        
        if (JOptionPane.showConfirmDialog(this.getParent(), "Confirma a Abertura de Caixa com os valores atuais?","Abertura de Caixa", JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE) == 2) return;
        try {
            caixa = dao.efetuarAberturaCaixa(usuario.getId());
            carregarCaixa(caixa);
            atualizarSaldos();
            atualizarValorComposicaoCaixa();
            carregarLancamentosEfetuados();
            carregarLancamentosPendentesRetorno();
            carregarPagamentosPendentesMalote();
            limpaCamposSangria();
            tabPrincipal.setEnabled(true);
            btFecharCaixa.setEnabled(true);
            btAbrirCaixa.setEnabled(false);                        
            btReimprimirReciboActionPerformed(evt);
        } catch (SQLException ex) {
            Logger.getLogger(frmCaixa.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_btAbrirCaixaActionPerformed

            /* Informar os dados do último Caixa Fechado e solicitar a confirmação/aceite dos Saldos e valores:
                Caso o usuário aceite:
                    Gerar Abertura de Caixa para o Usuário;
                    Habilitar o módulo para o Usuário;
                Senão:
                    Retornar ao menu principal.
            */        
    
    
    
    
    private void eventKeyReleasedCampoTxtLancamento(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_eventKeyReleasedCampoTxtLancamento
        atualizarValorComposicaoLancamento();
    }//GEN-LAST:event_eventKeyReleasedCampoTxtLancamento

    private void lblLimpaL1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblLimpaL1MouseClicked
        limpaCamposCE();      
    }//GEN-LAST:event_lblLimpaL1MouseClicked
    
    private void limpaCamposCE(){
        txtCE001.setText("0");
        txtCE005.setText("0");
        txtCE010.setText("0");
        txtCE025.setText("0");
        txtCE050.setText("0");
        txtCE100.setText("0");
        txtCE200.setText("0");
        txtCE500.setText("0");
        txtCE1000.setText("0");
        txtCE2000.setText("0");
        txtCE5000.setText("0");
        txtCE10000.setText("0");
        textAreaObservacaoCE.setText("");
        atualizarValorComposicaoCE();        
    }

    private void limpaCamposSangria(){
        txtS001.setText("0");
        txtS005.setText("0");
        txtS010.setText("0");
        txtS025.setText("0");
        txtS050.setText("0");
        txtS100.setText("0");
        txtS200.setText("0");
        txtS500.setText("0");
        txtS1000.setText("0");
        txtS2000.setText("0");
        txtS5000.setText("0");
        txtS10000.setText("0");
        textAreaObservacaoMalote.setText("");
        atualizarValorComposicaoSangria();
    }    

    private void limpaCamposPagamentosDiversos(){
        txtP001.setText("0");
        txtP005.setText("0");
        txtP010.setText("0");
        txtP025.setText("0");
        txtP050.setText("0");
        txtP100.setText("0");
        txtP200.setText("0");
        txtP500.setText("0");
        txtP1000.setText("0");
        txtP2000.setText("0");
        txtP5000.setText("0");
        txtP10000.setText("0");
        textAreaObservacaoP.setText("");
        cbTipoPagamento.setSelectedIndex(0);
        atualizarValorComposicaoPagamentosDiversos();
    }
    
    private void limpaCamposRetorno(){
        txtRetorno001.setText("0");
        txtRetorno005.setText("0");
        txtRetorno010.setText("0");
        txtRetorno025.setText("0");
        txtRetorno050.setText("0");
        txtRetorno100.setText("0");
        txtRetorno200.setText("0");
        txtRetorno500.setText("0");
        txtRetorno1000.setText("0");
        txtRetorno2000.setText("0");
        txtRetorno5000.setText("0");
        txtRetorno10000.setText("0");
        textAreaObservacaoRetorno.setText("");
        atualizarValorComposicaoRetorno();
    }    
    
    
    
    private void txtCEFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtCEFocusGained
        manipuladorLimpaSelecaoQuandoZero(evt);
    }//GEN-LAST:event_txtCEFocusGained

    private void txtCEFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtCEFocusLost
        manipuladorRetornaZeroQuandoVazio(evt);
    }//GEN-LAST:event_txtCEFocusLost

    private void txtCEKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtCEKeyReleased
        atualizarValorComposicaoCE();
    }//GEN-LAST:event_txtCEKeyReleased

    private void textAreaObservacaoLKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_textAreaObservacaoLKeyTyped
        
        int x = 500 - textAreaObservacaoL.getText().length();        
        lblRestante.setText(String.valueOf(x));
        
    }//GEN-LAST:event_textAreaObservacaoLKeyTyped

    private void textAreaObservacaoCEKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_textAreaObservacaoCEKeyTyped
        
        int x = 500 - textAreaObservacaoCE.getText().length();        
        lblRestanteCE.setText(String.valueOf(x));
        
    }//GEN-LAST:event_textAreaObservacaoCEKeyTyped

    private void btRegistrarCEActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btRegistrarCEActionPerformed
        
        //Obtem a quantidade informada de cada especie
        int lancamento001 = new Integer(txtCE001.getText());
        int lancamento005 = new Integer(txtCE005.getText());
        int lancamento010 = new Integer(txtCE010.getText());
        int lancamento025 = new Integer(txtCE025.getText());
        int lancamento050 = new Integer(txtCE050.getText());
        int lancamento100 = new Integer(txtCE100.getText());
        int lancamento200 = new Integer(txtCE200.getText());
        int lancamento500 = new Integer(txtCE500.getText());
        int lancamento1000 = new Integer(txtCE1000.getText());
        int lancamento2000 = new Integer(txtCE2000.getText());
        int lancamento5000 = new Integer(txtCE5000.getText());
        int lancamento10000 = new Integer(txtCE10000.getText());
        
        //verifica se os campos quantidade estão zerados
        if (lancamento001+lancamento005+lancamento010+lancamento025+lancamento050+lancamento100+lancamento200+lancamento500+lancamento1000+lancamento2000+lancamento5000+lancamento10000 == 0) {
            JOptionPane.showMessageDialog(this, "Informe a quantidade!");
            return;
        }
        
        List<Composicao> listaComposicaoCE = new ArrayList<Composicao>();        
        
        listaComposicaoCE.add(new Composicao(0.01, new Integer(txtCE001.getText())));
        listaComposicaoCE.add(new Composicao(0.05, new Integer(txtCE005.getText())));
        listaComposicaoCE.add(new Composicao(0.10, new Integer(txtCE010.getText())));
        listaComposicaoCE.add(new Composicao(0.25, new Integer(txtCE025.getText())));
        listaComposicaoCE.add(new Composicao(0.50, new Integer(txtCE050.getText())));
        listaComposicaoCE.add(new Composicao(1.00, new Integer(txtCE100.getText())));
        listaComposicaoCE.add(new Composicao(2.00, new Integer(txtCE200.getText())));
        listaComposicaoCE.add(new Composicao(5.00, new Integer(txtCE500.getText())));
        listaComposicaoCE.add(new Composicao(10.00, new Integer(txtCE1000.getText())));
        listaComposicaoCE.add(new Composicao(20.00, new Integer(txtCE2000.getText())));
        listaComposicaoCE.add(new Composicao(50.00, new Integer(txtCE5000.getText())));
        listaComposicaoCE.add(new Composicao(100.00, new Integer(txtCE10000.getText())));
                
        CreditoExterno creditoExterno = new CreditoExterno();
        
        creditoExterno.setId_caixa(caixa.getId());
        creditoExterno.setListaComposicao(listaComposicaoCE);
        creditoExterno.setObservacao(textAreaObservacaoCE.getText());
        try {
            dao.gravarCreditoExterno(creditoExterno);
            JOptionPane.showMessageDialog(this.getParent(), "Crédito Externo registrado!");
            carregarComposicaoCaixa(caixa.getId());
            atualizarValorComposicaoCaixa();
            atualizarSaldos();
            limpaCamposCE();
            carregarLancamentosEfetuados();
        } catch (SQLException ex) {
            Logger.getLogger(frmCaixa.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(this.getParent(), "Erro: " + ex, "Erro",JOptionPane.ERROR_MESSAGE);
        }

                
        
    }//GEN-LAST:event_btRegistrarCEActionPerformed

    private void btEstornarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btEstornarActionPerformed
     
        int idSelecao = tableLancamento.getSelectedRow();        
        
        if (idSelecao < 0) {
            JOptionPane.showMessageDialog(this.getParent(), "Selecione o Lançamento que deseja Estornar!");
            return;
        }
        if ("Excluido".equals(tableLancamento.getValueAt(idSelecao, 6).toString())) {
            JOptionPane.showMessageDialog(this.getParent(), "Este Lançamento já foi excluido!");
            return;
        }
        
        if ("Lançamento-Saída".equals(tableLancamento.getValueAt(idSelecao, 2).toString()) && JOptionPane.showConfirmDialog(this.getParent(), "Caso exista o Retorno para essa Retirada, ele também será excluído!","Confirmação",JOptionPane.OK_CANCEL_OPTION,JOptionPane.QUESTION_MESSAGE) == 2) {
            return;
        }        
        
        int linhaSelecionada = tableLancamento.getSelectedRow();
        int id_lancamento = new Integer(tableLancamento.getValueAt(linhaSelecionada, 0).toString());
        String tipo = tableLancamento.getValueAt(linhaSelecionada, 2).toString();

        int resposta = JOptionPane.showConfirmDialog(this.getParent(), "Confirma a exclusão desse Lançamento?", "Confirmação", JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE);        
        if (resposta == 2) return;
        
        try {
            dao.estornarLancamentoEfetuado(caixa.getId(), id_lancamento, tipo);            
            carregarComposicaoCaixa(caixa.getId());
            atualizarValorComposicaoCaixa();
            atualizarSaldos();
            carregarLancamentosEfetuados();
            JOptionPane.showMessageDialog(this.getParent(), tipo + " estornado!");
        } catch (SQLException ex) {
            Logger.getLogger(frmCaixa.class.getName()).log(Level.SEVERE, null, ex);
        }

    }//GEN-LAST:event_btEstornarActionPerformed

    private void btVisualizarLancamentoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btVisualizarLancamentoActionPerformed

        int idSelecao = tableLancamento.getSelectedRow();
        if (idSelecao < 0) {
            JOptionPane.showMessageDialog(this.getParent(), "Selecione o Lançamento que deseja Visualizar!");
            return;
        }
        int linhaSelecionada = tableLancamento.getSelectedRow();
        int id_lancamento = new Integer(tableLancamento.getValueAt(linhaSelecionada, 0).toString());
        String tipo = tableLancamento.getValueAt(linhaSelecionada, 2).toString();
        String descricao = tableLancamento.getValueAt(linhaSelecionada, 3).toString();
        String data = tableLancamento.getValueAt(linhaSelecionada, 1).toString();
        try {
            List<Composicao> listaComposicao = dao.consultarComposicaoLancamentoEfetuado(caixa.getId(), id_lancamento, tipo);
            frmComposicao dialog = new frmComposicao(new javax.swing.JFrame(), true, listaLancamentosEfetuados, listaComposicao, descricao, tipo, data, id_lancamento);
            dialog.setVisible(true);
        } catch (SQLException ex) {
            Logger.getLogger(frmCaixa.class.getName()).log(Level.SEVERE, null, ex);
        }
        
    }//GEN-LAST:event_btVisualizarLancamentoActionPerformed

    private void textAreaObservacaoMaloteKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_textAreaObservacaoMaloteKeyTyped
        
        int x = 500 - textAreaObservacaoMalote.getText().length();
        lblRestanteS.setText(String.valueOf(x));
        
    }//GEN-LAST:event_textAreaObservacaoMaloteKeyTyped

    private void gerarMaloteSangria(){
      
        //Obtem o saldo da quantidade de cada especie
        int saldo001 = new Integer(txtQ001.getText());
        int saldo005 = new Integer(txtQ005.getText());
        int saldo010 = new Integer(txtQ010.getText());
        int saldo025 = new Integer(txtQ025.getText());
        int saldo050 = new Integer(txtQ050.getText());
        int saldo100 = new Integer(txtQ100.getText());
        int saldo200 = new Integer(txtQ200.getText());
        int saldo500 = new Integer(txtQ500.getText());
        int saldo1000 = new Integer(txtQ1000.getText());
        int saldo2000 = new Integer(txtQ2000.getText());
        int saldo5000 = new Integer(txtQ5000.getText());
        int saldo10000 = new Integer(txtQ10000.getText());
        
        //Obtem a quantidade de cada especie solicitada
        int lancamento001 = new Integer(txtS001.getText());
        int lancamento005 = new Integer(txtS005.getText());
        int lancamento010 = new Integer(txtS010.getText());
        int lancamento025 = new Integer(txtS025.getText());
        int lancamento050 = new Integer(txtS050.getText());
        int lancamento100 = new Integer(txtS100.getText());
        int lancamento200 = new Integer(txtS200.getText());
        int lancamento500 = new Integer(txtS500.getText());
        int lancamento1000 = new Integer(txtS1000.getText());
        int lancamento2000 = new Integer(txtS2000.getText());
        int lancamento5000 = new Integer(txtS5000.getText());
        int lancamento10000 = new Integer(txtS10000.getText());
        
        //verifica se os campos quantidade estão zerados
        int totalQuantidade = lancamento001+lancamento005+lancamento010+lancamento025+lancamento050+lancamento100+lancamento200+lancamento500+lancamento1000+lancamento2000+lancamento5000+lancamento10000;
        if ( totalQuantidade == 0) {
            JOptionPane.showMessageDialog(this, "Informe a quantidade!");
            txtS001.requestFocus();
            return;
        }        
        
        //verifica se há saldo disponível em cada espécie
        if (1==1) {
            boolean saldoInsuficiente = false;
            if (saldo001 < lancamento001 ) {
                BalloonTip balloon = new BalloonTip(txtS001, "Saldo atual: " + saldo001);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo005 < lancamento005 ) {
                BalloonTip balloon = new BalloonTip(txtS005, "Saldo atual: " + saldo005);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo010 < lancamento010 ) {
                BalloonTip balloon = new BalloonTip(txtS010, "Saldo atual: " + saldo010);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo025 < lancamento025 ) {
                BalloonTip balloon = new BalloonTip(txtS025, "Saldo atual: " + saldo025);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo050 < lancamento050 ) {
                BalloonTip balloon = new BalloonTip(txtS050, "Saldo atual: " + saldo050);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo100 < lancamento100 ) {
                BalloonTip balloon = new BalloonTip(txtS100, "Saldo atual: " + saldo100);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo200 < lancamento200 ) {
                BalloonTip balloon = new BalloonTip(txtS200, "Saldo atual: " + saldo200);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo500 < lancamento500 ) {
                BalloonTip balloon = new BalloonTip(txtS500, "Saldo atual: " + saldo500);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo1000 < lancamento1000 ) {
                BalloonTip balloon = new BalloonTip(txtS1000, "Saldo atual: " + saldo1000);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo2000 < lancamento2000 ) {
                BalloonTip balloon = new BalloonTip(txtS2000, "Saldo atual: " + saldo2000);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo5000 < lancamento5000 ) {
                BalloonTip balloon = new BalloonTip(txtS5000, "Saldo atual: " + saldo5000);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo10000 < lancamento10000 ) {
                BalloonTip balloon = new BalloonTip(txtS10000, "Saldo atual: " + saldo10000);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }            
            if (saldoInsuficiente){
                JOptionPane.showMessageDialog(this, "Saldo insuficiente!");
                return;
            }
        }
        String valorSangria =  lblValorComposicaoMalote.getText();
        if (JOptionPane.showConfirmDialog(this.getParent(),"Confirma a Sangria no valor de "+valorSangria+"?","Confirmação",JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE) == 2) {
            return;
        }
                
        Sangria sangria = new Sangria();        
        List<Composicao> listaComposicaoSangria = new ArrayList<Composicao>();        
        
        listaComposicaoSangria.add(new Composicao(0.01, new Integer(txtS001.getText())*-1));
        listaComposicaoSangria.add(new Composicao(0.05, new Integer(txtS005.getText())*-1));
        listaComposicaoSangria.add(new Composicao(0.10, new Integer(txtS010.getText())*-1));
        listaComposicaoSangria.add(new Composicao(0.25, new Integer(txtS025.getText())*-1));
        listaComposicaoSangria.add(new Composicao(0.50, new Integer(txtS050.getText())*-1));
        listaComposicaoSangria.add(new Composicao(1.00, new Integer(txtS100.getText())*-1));
        listaComposicaoSangria.add(new Composicao(2.00, new Integer(txtS200.getText())*-1));
        listaComposicaoSangria.add(new Composicao(5.00, new Integer(txtS500.getText())*-1));
        listaComposicaoSangria.add(new Composicao(10.00, new Integer(txtS1000.getText())*-1));
        listaComposicaoSangria.add(new Composicao(20.00, new Integer(txtS2000.getText())*-1));
        listaComposicaoSangria.add(new Composicao(50.00, new Integer(txtS5000.getText())*-1));
        listaComposicaoSangria.add(new Composicao(100.00, new Integer(txtS10000.getText())*-1));
        
        sangria.setId_caixa(caixa.getId());
        sangria.setGuia(Integer.valueOf(txtGuia.getText()));
        sangria.setMalote(Integer.valueOf(txtMalote.getText()));
        sangria.setContaCorrente(cbContaCorrente.getSelectedItem().toString());
        sangria.setTransportadora(cbTransportadora.getSelectedItem().toString());
        double v2 = new Double(lblValorComposicaoMalote.getText().replace("R$ ", "").replace(".", "").replace(",", "."));
        sangria.setValor(v2);
        sangria.setObservacao(textAreaObservacaoMalote.getText());
        sangria.setListaComposicaoSangria(listaComposicaoSangria);
        
        try {
            dao.gravarSangria(sangria);
            JOptionPane.showMessageDialog(this, "Sangria Registrada!", "Ssangria", JOptionPane.INFORMATION_MESSAGE);
            carregarComposicaoCaixa(caixa.getId());
            atualizarValorComposicaoCaixa();
            atualizarSaldos();
            limpaCamposSangria();
            carregarLancamentosEfetuados();            
            txtGuia.setText("0");
            txtMalote.setText("0");
            cbContaCorrente.setSelectedIndex(0);
            cbTransportadora.setSelectedIndex(0);
            imprimirReciboSangria(sangria.getMalote());
            System.out.println(sangria.getMalote());
        } catch (SQLException ex) {
            Logger.getLogger(frmCaixa.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(this, "Erro ao Gravar Sangria!\nMotivo: " + ex, "Erro ao Gravar Sangria!", JOptionPane.ERROR_MESSAGE);
        }
    }
    
    private void lblLimpaSMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblLimpaSMouseClicked
        limpaCamposSangria();
    }//GEN-LAST:event_lblLimpaSMouseClicked

    private void txtSFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtSFocusGained
        manipuladorLimpaSelecaoQuandoZero(evt);        
    }//GEN-LAST:event_txtSFocusGained

    private void txtSFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtSFocusLost
        manipuladorRetornaZeroQuandoVazio(evt);
    }//GEN-LAST:event_txtSFocusLost

    private void txtSKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtSKeyReleased
        atualizarValorComposicaoSangria();
    }//GEN-LAST:event_txtSKeyReleased

    private void lblLimpaRetornoMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblLimpaRetornoMouseClicked
        limpaCamposRetorno();        
    }//GEN-LAST:event_lblLimpaRetornoMouseClicked
        
    private void btRegistrarRetornoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btRegistrarRetornoActionPerformed
        
        //Obtem a quantidade informada de cada especie
        int retorno001 = new Integer(txtRetorno001.getText());
        int retorno005 = new Integer(txtRetorno005.getText());
        int retorno010 = new Integer(txtRetorno010.getText());
        int retorno025 = new Integer(txtRetorno025.getText());
        int retorno050 = new Integer(txtRetorno050.getText());
        int retorno100 = new Integer(txtRetorno100.getText());
        int retorno200 = new Integer(txtRetorno200.getText());
        int retorno500 = new Integer(txtRetorno500.getText());
        int retorno1000 = new Integer(txtRetorno1000.getText());
        int retorno2000 = new Integer(txtRetorno2000.getText());
        int retorno5000 = new Integer(txtRetorno5000.getText());
        int retorno10000 = new Integer(txtRetorno10000.getText());
        
        //verifica se os campos quantidade estão zerados
        int totalComposicao = retorno001+retorno005+retorno010+retorno025+retorno050+retorno100+retorno200+retorno500+retorno1000+retorno2000+retorno5000+retorno10000;
        if ( totalComposicao == 0) {
            JOptionPane.showMessageDialog(this, "Informe a quantidade!");
            return;
        }
        
        String item = cbRetiradaDeTroco.getSelectedItem().toString();
        String[] itens = item.split("\\|");        
        int id = new Integer(itens[0].trim());
        //String descricao = itens[1].trim();
        //String praca = itens[2].trim();        
        double v1 = new Double(itens[3].trim().replace(".", "").replace(",", "."));
        double v2 = new Double(lblValorComposicaoRetorno.getText().replace("R$ ", "").replace(".", "").replace(",", "."));
        
        if (v1 != v2) {
            JOptionPane.showMessageDialog(this.getParent(), "O valor total de Retorno é diferente do valor retirado!");
            //JOptionPane.showMessageDialog(this.getParent(), v1 + " : " + v2);
            return;
        }
        
        List<Composicao> listaComposicaoRetorno = new ArrayList<Composicao>();        
        
        listaComposicaoRetorno.add(new Composicao(0.01, retorno001));
        listaComposicaoRetorno.add(new Composicao(0.05, retorno005));
        listaComposicaoRetorno.add(new Composicao(0.10, retorno010));
        listaComposicaoRetorno.add(new Composicao(0.25, retorno025));
        listaComposicaoRetorno.add(new Composicao(0.50, retorno050));
        listaComposicaoRetorno.add(new Composicao(1.00, retorno100));
        listaComposicaoRetorno.add(new Composicao(2.00, retorno200));
        listaComposicaoRetorno.add(new Composicao(5.00, retorno500));
        listaComposicaoRetorno.add(new Composicao(10.00, retorno1000));
        listaComposicaoRetorno.add(new Composicao(20.00, retorno2000));
        listaComposicaoRetorno.add(new Composicao(50.00, retorno5000));
        listaComposicaoRetorno.add(new Composicao(100.00, retorno10000));
                
        LancamentoRetorno lc = new LancamentoRetorno();
        
        lc.setId_caixa(caixa.getId());
        lc.setId_lancamento(id);
        lc.setObservacao(textAreaObservacaoRetorno.getText());
        lc.setListaComposicao(listaComposicaoRetorno);
        try {
            dao.gravarLancamentoRetorno(lc);
            JOptionPane.showMessageDialog(this.getParent(), "Retorno registrado!");
            carregarComposicaoCaixa(caixa.getId());
            atualizarValorComposicaoCaixa();
            atualizarSaldos();
            limpaCamposRetorno();
            carregarLancamentosEfetuados();
        } catch (SQLException ex) {
            Logger.getLogger(frmCaixa.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(this.getParent(), "Erro: " + ex, "Erro",JOptionPane.ERROR_MESSAGE);
        }
    }//GEN-LAST:event_btRegistrarRetornoActionPerformed

    private void txtRetiradaFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtRetiradaFocusGained
        manipuladorLimpaSelecaoQuandoZero(evt);
    }//GEN-LAST:event_txtRetiradaFocusGained

    private void txtRetornoFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtRetornoFocusLost
        manipuladorRetornaZeroQuandoVazio(evt);
    }//GEN-LAST:event_txtRetornoFocusLost

    private void txtRetornoKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtRetornoKeyReleased
        atualizarValorComposicaoRetorno();
    }//GEN-LAST:event_txtRetornoKeyReleased

    private void textAreaObservacaoRetornoKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_textAreaObservacaoRetornoKeyTyped
        int x = 500 - textAreaObservacaoRetorno.getText().length();
        lblRestanteRetorno.setText(String.valueOf(x));        
    }//GEN-LAST:event_textAreaObservacaoRetornoKeyTyped

    private void cbRetiradaDeTrocoItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cbRetiradaDeTrocoItemStateChanged
        
        if (cbRetiradaDeTroco.getItemCount() >= 1 ) {
            String selecao = cbRetiradaDeTroco.getSelectedItem().toString();
            if (selecao.equals("Selecione")) {
                habilitarEdicaoComposicaoRetorno(false);
            } else {
                habilitarEdicaoComposicaoRetorno(true);
            }                     
        }
    }//GEN-LAST:event_cbRetiradaDeTrocoItemStateChanged

    private void btFecharCaixaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btFecharCaixaActionPerformed
        try {

            if (cbRetiradaDeTroco.getItemCount() > 1) {
                JOptionPane.showMessageDialog(this.getParent(), "Não é possível fechar o Caixa com Retirada de Troco sem retorno!");
                tabPrincipal.setSelectedComponent(abaLancamento);
                tabLancamento.setSelectedComponent(jpRetornoDeTroco);
                cbRetiradaDeTroco.setSelectedIndex(1);
                return;
            }
            
            if (listPagamentos.getModel().getSize() > 0) {
                JOptionPane.showMessageDialog(this.getParent(), "Não é possível fechar o Caixa com Pagamentos"
                        + " pendentes de Geração de Malote!");
                tabPrincipal.setSelectedComponent(jpGerarMalote);
                rbTipoPagamento.setSelected(true);
                listPagamentos.setSelectedIndex(1);
                return;                
            }        
            
            //Verifica tempo restante para o encerramento do turno.
            int s = dao.atualizarOvertime();
            int m = s / 60;
            int h = m / 60;
            int min = m % 60;
            if (caixa.getOvertime() < 0 && JOptionPane.showConfirmDialog(this, "Seu Turno encerra em "+h*-1+" horas e "+min*-1+" minutos.\n"
                    + "Confirma o Fechamento do Caixa agora?", "Fechamento do Caixa",JOptionPane.OK_CANCEL_OPTION,JOptionPane.QUESTION_MESSAGE) == 2) {
                return;
            }
            if (JOptionPane.showConfirmDialog(this, "Seu Caixa será fechado com o Saldo de R$ "+f.format(ftfSaldoTotal.getValue())+"!\n"+
                "Confirma?", "Fechamento do Caixa",JOptionPane.OK_CANCEL_OPTION,JOptionPane.QUESTION_MESSAGE) == 2) {
                return;
            }
            
            dao.fecharCaixa(caixa.getId());
            JOptionPane.showMessageDialog(this.getParent(), "Caixa Fechado!");
            tabPrincipal.setEnabled(false);
            btFecharCaixa.setEnabled(false);
            btAbrirCaixa.setEnabled(true);
            caixa = dao.obterUltimoCaixa();
            carregarCaixa(caixa);
            atualizarValorComposicaoCaixa();
            atualizarSaldos();            
            btReimprimirReciboActionPerformed(evt);
        } catch (SQLException ex) {
            Logger.getLogger(frmCaixa.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_btFecharCaixaActionPerformed

    private void btReimprimirReciboActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btReimprimirReciboActionPerformed
        if (usuario.getId() != caixa.getId_usuario()) {
            JOptionPane.showMessageDialog(this.getParent(), "Somente o responsável pelo Caixa pode reimprimir o Recibo!");
            return;
        }        
        String file;
        String titulo;
        
        if (caixa.getStatus() == 0){
            file = "./jasper/ReciboAberturaCaixa.jasper";
            titulo = "Impressão do Recibo da Abertura de Caixa";
        } else {
            file = "./jasper/ReciboFechamentoCaixa.jasper";
            titulo = "Impressão do Recibo do Fechamento de Caixa";
        }
        JasperPrint jp;
        try {
            jp = JasperFillManager.fillReport(file, null, dao.getConnection());
            JasperViewer jv = new JasperViewer(jp, false);
            jv.setTitle(titulo);
            JDialog view = new JDialog(new javax.swing.JFrame(), "Impressão de Recibo", true);
            Toolkit tollkit = Toolkit.getDefaultToolkit();
            Dimension dimensao = tollkit.getScreenSize();
            view.setSize((int)dimensao.getWidth(), (int)(dimensao.getHeight()*0.95));
            view.getContentPane().add(jv.getContentPane());
            view.setVisible(true);            
        } catch (JRException ex) {
            Logger.getLogger(frmCaixa.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(this.getParent(), ex.toString());
        }
    }//GEN-LAST:event_btReimprimirReciboActionPerformed

    private void btRegistrarPagamentoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btRegistrarPagamentoActionPerformed
        
        //verifica se o tipo de Pagamento foi selecionado
        if ("Selecione".equals(cbTipoPagamento.getSelectedItem().toString())) {
            JOptionPane.showMessageDialog(this.getParent(), "Selecione o Tipo de Pagamento!");
            cbTipoPagamento.requestFocus();
            return;
        }        
        
        //Obtem a quantidade de cada especie solicitada
        int p001 = new Integer(txtP001.getText());
        int p005 = new Integer(txtP005.getText());
        int p010 = new Integer(txtP010.getText());
        int p025 = new Integer(txtP025.getText());
        int p050 = new Integer(txtP050.getText());
        int p100 = new Integer(txtP100.getText());
        int p200 = new Integer(txtP200.getText());
        int p500 = new Integer(txtP500.getText());
        int p1000 = new Integer(txtP1000.getText());
        int p2000 = new Integer(txtP2000.getText());
        int p5000 = new Integer(txtP5000.getText());
        int p10000 = new Integer(txtP10000.getText());
        
        //verifica se os campos quantidade estão zerados
        int totalQuantidade = p001+p005+p010+p025+p050+p100+p200+p500+p1000+p2000+p5000+p10000;
        if ( totalQuantidade == 0) {
            JOptionPane.showMessageDialog(this, "Informe a quantidade!");
            return;
        }        

        String valorPagamento =  lblValorComposicaoPagamento.getText();
        if (JOptionPane.showConfirmDialog(this.getParent(),"Confirma o Pagamento no valor de "+valorPagamento+"?","Confirmação",JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE) == 2) {
            return;
        }                

        List<Composicao> listaComposicaoPagamento = new ArrayList<Composicao>();        
        
        listaComposicaoPagamento.add(new Composicao(0.01, new Integer(txtP001.getText())));
        listaComposicaoPagamento.add(new Composicao(0.05, new Integer(txtP005.getText())));
        listaComposicaoPagamento.add(new Composicao(0.10, new Integer(txtP010.getText())));
        listaComposicaoPagamento.add(new Composicao(0.25, new Integer(txtP025.getText())));
        listaComposicaoPagamento.add(new Composicao(0.50, new Integer(txtP050.getText())));
        listaComposicaoPagamento.add(new Composicao(1.00, new Integer(txtP100.getText())));
        listaComposicaoPagamento.add(new Composicao(2.00, new Integer(txtP200.getText())));
        listaComposicaoPagamento.add(new Composicao(5.00, new Integer(txtP500.getText())));
        listaComposicaoPagamento.add(new Composicao(10.00, new Integer(txtP1000.getText())));
        listaComposicaoPagamento.add(new Composicao(20.00, new Integer(txtP2000.getText())));
        listaComposicaoPagamento.add(new Composicao(50.00, new Integer(txtP5000.getText())));
        listaComposicaoPagamento.add(new Composicao(100.00, new Integer(txtP10000.getText())));
      
        Pagamento p = new Pagamento();
        p.setIdcaixa(caixa.getId());
        p.setTipoPagamento(cbTipoPagamento.getSelectedItem().toString());
        p.setObservacao(textAreaObservacaoP.getText());
        p.setListaComposicao(listaComposicaoPagamento);
        
        try {
            dao.gravarPagamento(p);
            JOptionPane.showMessageDialog(this, "Pagamento Registrado!", "Pagamento", JOptionPane.INFORMATION_MESSAGE);
            carregarComposicaoCaixa(caixa.getId());
            atualizarValorComposicaoCaixa();
            atualizarSaldos();
            limpaCamposPagamentosDiversos();
            carregarLancamentosEfetuados();
            //btReimprimirReciboSangriaActionPerformed(evt);
        } catch (SQLException ex) {
            Logger.getLogger(frmCaixa.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(this, "Erro ao Gravar Pagamento!\nMotivo: " + ex, "Erro ao Gravar Pagamento!", JOptionPane.ERROR_MESSAGE);
        }

        
    }//GEN-LAST:event_btRegistrarPagamentoActionPerformed

    private void txtPFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtPFocusGained
        manipuladorLimpaSelecaoQuandoZero(evt);
    }//GEN-LAST:event_txtPFocusGained

    private void txtPFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtPFocusLost
        manipuladorRetornaZeroQuandoVazio(evt);
    }//GEN-LAST:event_txtPFocusLost

    private void txtPKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtPKeyReleased
        atualizarValorComposicaoPagamentosDiversos();
    }//GEN-LAST:event_txtPKeyReleased

    private void lblLimpaPMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblLimpaPMouseClicked
        limpaCamposPagamentosDiversos();
    }//GEN-LAST:event_lblLimpaPMouseClicked

    private void textAreaObservacaoPKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_textAreaObservacaoPKeyTyped
        
        int x = 500 - textAreaObservacaoP.getText().length();
        lblRestanteP.setText(String.valueOf(x));
        
    }//GEN-LAST:event_textAreaObservacaoPKeyTyped

    private void txtGuiaFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtGuiaFocusGained
        manipuladorLimpaSelecaoQuandoZero(evt);
    }//GEN-LAST:event_txtGuiaFocusGained

    private void txtGuiaFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtGuiaFocusLost
        manipuladorRetornaZeroQuandoVazio(evt);
    }//GEN-LAST:event_txtGuiaFocusLost

    private void txtMaloteFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtMaloteFocusGained
        manipuladorLimpaSelecaoQuandoZero(evt);
    }//GEN-LAST:event_txtMaloteFocusGained

    private void txtMaloteFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtMaloteFocusLost
        manipuladorRetornaZeroQuandoVazio(evt);
    }//GEN-LAST:event_txtMaloteFocusLost

    private void btRegistrarMaloteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btRegistrarMaloteActionPerformed
        
        //verifica se o número da guia foi informado
        if ("0".equals(txtGuia.getText())) {
            JOptionPane.showMessageDialog(this.getParent(), "Informe o Número da Guia!");
            txtGuia.requestFocus();
            return;
        }

        //verifica se o número do Malote foi informado
        if ("0".equals(txtMalote.getText())) {
            JOptionPane.showMessageDialog(this.getParent(), "Informe o Número do Malote!");
            txtMalote.requestFocus();
            return;
        }
        
        //verifica se a transportadora foi selecionada
        if ("Selecione".equals(cbTransportadora.getSelectedItem().toString())) {
            JOptionPane.showMessageDialog(this.getParent(), "Selecione a Transportadora!");
            cbTransportadora.requestFocus();
            return;
        }
        
        //verifica se a Conta Corrente foi selecionada
        if ("Selecione".equals(cbContaCorrente.getSelectedItem().toString())) {
            JOptionPane.showMessageDialog(this.getParent(), "Selecione a Conta Corrente!");
            cbContaCorrente.requestFocus();
            return;
        }
        
        if (rbTipoSangria.isSelected()) {
            gerarMaloteSangria();
        } else {            
            gerarMalotePagamento();
        }
    }//GEN-LAST:event_btRegistrarMaloteActionPerformed

    private void listPagamentosValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_listPagamentosValueChanged
        String item = null;
        String[] itens = null;
        int id = 0;
        double v1 = 0.0;        
        Object[] p = listPagamentos.getSelectedValues();        
        for (int i = 0; i < p.length; i++) {            
            item = p[i].toString();
            itens = item.split("\\|");
            //id = new Integer(itens[0].trim());
            v1 = v1 + new Double(itens[2].trim().replace(".", "").replace(",", "."));            
        }
        lblValorTotalPagamentos.setText("R$ " + f.format(v1));       
        
    }//GEN-LAST:event_listPagamentosValueChanged

    private void gerarMalotePagamento(){
        String item = null;
        String[] itens = null;        
        double v1 = 0.0;        
        Object[] pArray = listPagamentos.getSelectedValues();
        int[] id = new int[pArray.length];
        if (pArray.length == 0) {
            JOptionPane.showMessageDialog(this.getParent(), "Selecione um ou mais Pagamentos para Incluir no Malote!");
            return;
        }
        
     //Obtem o saldo da quantidade de cada especie
        int saldo001 = new Integer(txtQ001.getText());
        int saldo005 = new Integer(txtQ005.getText());
        int saldo010 = new Integer(txtQ010.getText());
        int saldo025 = new Integer(txtQ025.getText());
        int saldo050 = new Integer(txtQ050.getText());
        int saldo100 = new Integer(txtQ100.getText());
        int saldo200 = new Integer(txtQ200.getText());
        int saldo500 = new Integer(txtQ500.getText());
        int saldo1000 = new Integer(txtQ1000.getText());
        int saldo2000 = new Integer(txtQ2000.getText());
        int saldo5000 = new Integer(txtQ5000.getText());
        int saldo10000 = new Integer(txtQ10000.getText());
        
        //Obtem a quantidade de cada especie solicitada
        int lancamento001 = new Integer(txtS001.getText());
        int lancamento005 = new Integer(txtS005.getText());
        int lancamento010 = new Integer(txtS010.getText());
        int lancamento025 = new Integer(txtS025.getText());
        int lancamento050 = new Integer(txtS050.getText());
        int lancamento100 = new Integer(txtS100.getText());
        int lancamento200 = new Integer(txtS200.getText());
        int lancamento500 = new Integer(txtS500.getText());
        int lancamento1000 = new Integer(txtS1000.getText());
        int lancamento2000 = new Integer(txtS2000.getText());
        int lancamento5000 = new Integer(txtS5000.getText());
        int lancamento10000 = new Integer(txtS10000.getText());
        
        //verifica se os campos quantidade estão zerados
        int totalQuantidade = lancamento001+lancamento005+lancamento010+lancamento025+lancamento050+lancamento100+lancamento200+lancamento500+lancamento1000+lancamento2000+lancamento5000+lancamento10000;
        if ( totalQuantidade == 0) {
            JOptionPane.showMessageDialog(this, "Informe a quantidade!");
            txtS001.requestFocus();
            return;
        }        
        
        //verifica se há saldo disponível em cada espécie
        if (1==1) {
            boolean saldoInsuficiente = false;
            if (saldo001 < lancamento001 ) {
                BalloonTip balloon = new BalloonTip(txtS001, "Saldo atual: " + saldo001);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo005 < lancamento005 ) {
                BalloonTip balloon = new BalloonTip(txtS005, "Saldo atual: " + saldo005);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo010 < lancamento010 ) {
                BalloonTip balloon = new BalloonTip(txtS010, "Saldo atual: " + saldo010);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo025 < lancamento025 ) {
                BalloonTip balloon = new BalloonTip(txtS025, "Saldo atual: " + saldo025);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo050 < lancamento050 ) {
                BalloonTip balloon = new BalloonTip(txtS050, "Saldo atual: " + saldo050);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo100 < lancamento100 ) {
                BalloonTip balloon = new BalloonTip(txtS100, "Saldo atual: " + saldo100);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo200 < lancamento200 ) {
                BalloonTip balloon = new BalloonTip(txtS200, "Saldo atual: " + saldo200);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo500 < lancamento500 ) {
                BalloonTip balloon = new BalloonTip(txtS500, "Saldo atual: " + saldo500);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo1000 < lancamento1000 ) {
                BalloonTip balloon = new BalloonTip(txtS1000, "Saldo atual: " + saldo1000);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo2000 < lancamento2000 ) {
                BalloonTip balloon = new BalloonTip(txtS2000, "Saldo atual: " + saldo2000);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo5000 < lancamento5000 ) {
                BalloonTip balloon = new BalloonTip(txtS5000, "Saldo atual: " + saldo5000);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }
            if (saldo10000 < lancamento10000 ) {
                BalloonTip balloon = new BalloonTip(txtS10000, "Saldo atual: " + saldo10000);
                balloon.setVisible(true);
                saldoInsuficiente = true;                
            }            
            if (saldoInsuficiente){
                JOptionPane.showMessageDialog(this, "Saldo insuficiente!");
                return;
            }
        }
        for (int i = 0; i < pArray.length; i++) {            
            item = pArray[i].toString();
            itens = item.split("\\|");
            id[i] = new Integer(itens[0].trim());
            v1 = v1 + new Double(itens[2].trim().replace(".", "").replace(",", "."));            
        }
        double v2 = new Double(lblValorComposicaoMalote.getText().replace("R$ ", "").replace(".", "").replace(",", "."));
        if (v1 != v2) {
            JOptionPane.showMessageDialog(this.getParent(), "O valor total de Pagamento selecionado é diferente do valor total da Composição!");
            //JOptionPane.showMessageDialog(this.getParent(), v1 + " : " + v2);
            return;
        }
        String valorPagamento =  lblValorComposicaoMalote.getText();
        if (JOptionPane.showConfirmDialog(this.getParent(),"Confirma o total de Pagamentos no valor de "+valorPagamento+"?","Confirmação",JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE) == 2) {
            return;
        }        
        
        PagamentoMalote pm = new PagamentoMalote();        
        List<Composicao> listaComposicaoPagamento = new ArrayList<Composicao>();        
        
        listaComposicaoPagamento.add(new Composicao(0.01, new Integer(txtS001.getText())*-1));
        listaComposicaoPagamento.add(new Composicao(0.05, new Integer(txtS005.getText())*-1));
        listaComposicaoPagamento.add(new Composicao(0.10, new Integer(txtS010.getText())*-1));
        listaComposicaoPagamento.add(new Composicao(0.25, new Integer(txtS025.getText())*-1));
        listaComposicaoPagamento.add(new Composicao(0.50, new Integer(txtS050.getText())*-1));
        listaComposicaoPagamento.add(new Composicao(1.00, new Integer(txtS100.getText())*-1));
        listaComposicaoPagamento.add(new Composicao(2.00, new Integer(txtS200.getText())*-1));
        listaComposicaoPagamento.add(new Composicao(5.00, new Integer(txtS500.getText())*-1));
        listaComposicaoPagamento.add(new Composicao(10.00, new Integer(txtS1000.getText())*-1));
        listaComposicaoPagamento.add(new Composicao(20.00, new Integer(txtS2000.getText())*-1));
        listaComposicaoPagamento.add(new Composicao(50.00, new Integer(txtS5000.getText())*-1));
        listaComposicaoPagamento.add(new Composicao(100.00, new Integer(txtS10000.getText())*-1));
        
        pm.setIdcaixa(caixa.getId());
        pm.setIdPagamento(id);
        pm.setGuia(Integer.valueOf(txtGuia.getText()));
        pm.setMalote(Integer.valueOf(txtMalote.getText()));
        pm.setContaCorrente(cbContaCorrente.getSelectedItem().toString());
        pm.setTransportadora(cbTransportadora.getSelectedItem().toString());        
        pm.setValor(v2);
        pm.setObservacao(textAreaObservacaoMalote.getText());
        pm.setListaComposicao(listaComposicaoPagamento);        
        
        try {
            dao.gravarPagamentoMalote(pm);
            JOptionPane.showMessageDialog(this, "Pagamento Registrado no Malote!", "Registro", JOptionPane.INFORMATION_MESSAGE);
            carregarComposicaoCaixa(caixa.getId());
            atualizarValorComposicaoCaixa();
            atualizarSaldos();
            limpaCamposSangria();
            carregarLancamentosEfetuados();
            txtGuia.setText("0");
            txtMalote.setText("0");
            cbContaCorrente.setSelectedIndex(0);
            cbTransportadora.setSelectedIndex(0);            
            if (listPagamentos.getModel().getSize() == 0) rbTipoSangria.setSelected(true);
            imprimirReciboPagamento(pm.getMalote()); 
            System.out.println(pm.getMalote());
        } catch (SQLException ex) {
            Logger.getLogger(frmCaixa.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(this, "Erro ao Gravar Pagamento no Malote!\nMotivo: " + ex, "Erro", JOptionPane.ERROR_MESSAGE);
        }
    }
    
         
    private void imprimirReciboSangria(int malote){
        
        String file = "./jasper/ReciboSangria.jasper";
        String titulo = "Impressão de Recibo - Sangria";

        JasperPrint jp;
        try {
            HashMap parametros = new HashMap();
            parametros.put("NUM_MALOTE", malote);
            jp = JasperFillManager.fillReport(file, parametros, dao.getConnection());
            JasperViewer jv = new JasperViewer(jp, false);
            jv.setTitle(titulo);
            JDialog view = new JDialog(new javax.swing.JFrame(), "Impressão de Recibo", true);
            Toolkit tollkit = Toolkit.getDefaultToolkit();
            Dimension dimensao = tollkit.getScreenSize();
            view.setSize((int)dimensao.getWidth(), (int)(dimensao.getHeight()*0.95));
            view.getContentPane().add(jv.getContentPane());
            view.setVisible(true);            
        } catch (JRException ex) {
            Logger.getLogger(frmCaixa.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(this.getParent(), ex.toString());
        }                
        
    }
    
    private void imprimirReciboPagamento(int malote){
        
        String file = "./jasper/ReciboPagamentosDiversos.jasper";
        String titulo = "Impressão de Recibo - Pagamentos";

        JasperPrint jp;
        try {
            HashMap parametros = new HashMap();
            parametros.put("NUM_MALOTE", malote);
            jp = JasperFillManager.fillReport(file, parametros, dao.getConnection());
            JasperViewer jv = new JasperViewer(jp, false);
            jv.setTitle(titulo);
            JDialog view = new JDialog(new javax.swing.JFrame(), "Impressão de Recibo", true);
            Toolkit tollkit = Toolkit.getDefaultToolkit();
            Dimension dimensao = tollkit.getScreenSize();
            view.setSize((int)dimensao.getWidth(), (int)(dimensao.getHeight()*0.95));
            view.getContentPane().add(jv.getContentPane());
            view.setVisible(true);            
        } catch (JRException ex) {
            Logger.getLogger(frmCaixa.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(this.getParent(), ex.toString());
        }                
        
    }    
    
    private void carregarCaixa(Caixa caixa) throws SQLException{
        //Caso não exista algum caixa registrado...
        if (caixa.getId() == 0) {
            txtNome.setText("-");
            txtDataAbertura.setText("-");
            txtDataFechamento.setText("-");
            txtUsername.setText("-");
            txtTurno.setText("-");            
            txtStatus.setText("-");
        } else {            
            String dataAbertura = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss").format(caixa.getData_abertura());
            String dataFechamento;        
            if (caixa.getData_fechamento() == null) {
                dataFechamento = "-";
            } else {
                dataFechamento = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss").format(caixa.getData_fechamento());
            }
            txtNome.setText(caixa.getNome());
            txtDataAbertura.setText(dataAbertura);
            txtDataFechamento.setText(dataFechamento);
            txtUsername.setText(caixa.getLogin());
            txtTurno.setText(String.valueOf(caixa.getTurno()));
            if (caixa.getStatus() == 0) {
                txtStatus.setText("Aberto");
            } else {
                txtStatus.setText("Fechado");
            }

            ftfSaldoAnterior.setValue(caixa.getSaldoAnterior());
            ftfTotalSaidas.setValue(caixa.getTotalSaida());
            ftfTotalEntradas.setValue(caixa.getTotalEntrada());            
            ftfTotalPagamento.setValue(caixa.getTotalPagamento());
            ftfSaldoTotal.setValue(caixa.getSaldoTotal());
            
            Iterator<Composicao> it = caixa.getListaComposicaoCaixa().iterator();
            while (it.hasNext()) {
                Composicao cc = it.next();
                if (cc.getValor() == 0.01) txtQ001.setText(new Integer(cc.getQuantidade()).toString());
                if (cc.getValor() == 0.05) txtQ005.setText(new Integer(cc.getQuantidade()).toString());
                if (cc.getValor() == 0.10) txtQ010.setText(new Integer(cc.getQuantidade()).toString());
                if (cc.getValor() == 0.25) txtQ025.setText(new Integer(cc.getQuantidade()).toString());
                if (cc.getValor() == 0.50) txtQ050.setText(new Integer(cc.getQuantidade()).toString());
                if (cc.getValor() == 1.00) txtQ100.setText(new Integer(cc.getQuantidade()).toString());
                if (cc.getValor() == 2.00) txtQ200.setText(new Integer(cc.getQuantidade()).toString());
                if (cc.getValor() == 5.00) txtQ500.setText(new Integer(cc.getQuantidade()).toString());
                if (cc.getValor() == 10.00) txtQ1000.setText(new Integer(cc.getQuantidade()).toString());
                if (cc.getValor() == 20.00) txtQ2000.setText(new Integer(cc.getQuantidade()).toString());
                if (cc.getValor() == 50.00) txtQ5000.setText(new Integer(cc.getQuantidade()).toString());
                if (cc.getValor() == 100.00) txtQ10000.setText(new Integer(cc.getQuantidade()).toString());
            }
        }
    }
    
        private void atualizarValorComposicaoLancamento(){
                
        Double d001 = 0.0;
        Double d005 = 0.0;
        Double d010 = 0.0;
        Double d025 = 0.0;
        Double d050 = 0.0;
        Double d100 = 0.0;
        Double d200 = 0.0;
        Double d500 = 0.0;
        Double d1000 = 0.0;
        Double d2000 = 0.0;
        Double d5000 = 0.0;
        Double d10000 = 0.0;        
        
        if (!txtL001.getText().isEmpty()) d001 = 0.01 * new Integer(txtL001.getText());
        if (!txtL005.getText().isEmpty()) d005 = 0.05 * new Integer(txtL005.getText());
        if (!txtL010.getText().isEmpty()) d010 = 0.10 * new Integer(txtL010.getText());
        if (!txtL025.getText().isEmpty()) d025 = 0.25 * new Integer(txtL025.getText());
        if (!txtL050.getText().isEmpty()) d050 = 0.50 * new Integer(txtL050.getText());
        if (!txtL100.getText().isEmpty()) d100 = 1.00 * new Integer(txtL100.getText());
        if (!txtL200.getText().isEmpty()) d200 = 2.00 * new Integer(txtL200.getText());
        if (!txtL500.getText().isEmpty()) d500 = 5.00 * new Integer(txtL500.getText());
        if (!txtL1000.getText().isEmpty()) d1000 = 10.00 * new Integer(txtL1000.getText());
        if (!txtL2000.getText().isEmpty()) d2000 = 20.00 * new Integer(txtL2000.getText());
        if (!txtL5000.getText().isEmpty()) d5000 = 50.00 * new Integer(txtL5000.getText());
        if (!txtL10000.getText().isEmpty()) d10000 = 100.00 * new Integer(txtL10000.getText());
        
        Double valorTotalComposicao = d001+d005+d010+d025+d050+d100+d200+d500+d1000+d2000+d5000+d10000;
                
        lblL001.setText("R$ "+ f.format(d001));
        lblL005.setText("R$ "+ f.format(d005));
        lblL010.setText("R$ "+ f.format(d010));
        lblL025.setText("R$ "+ f.format(d025));
        lblL050.setText("R$ "+ f.format(d050));
        lblL100.setText("R$ "+ f.format(d100));
        lblL200.setText("R$ "+ f.format(d200));
        lblL500.setText("R$ "+ f.format(d500));
        lblL1000.setText("R$ "+ f.format(d1000));
        lblL2000.setText("R$ "+ f.format(d2000));
        lblL5000.setText("R$ "+ f.format(d5000));
        lblL10000.setText("R$ "+ f.format(d10000));

        lblValorComposicaoRetirada.setText("R$ "+f.format(valorTotalComposicao));
    }
    
        private void atualizarValorComposicaoCE(){
                
        Double d001 = 0.0;
        Double d005 = 0.0;
        Double d010 = 0.0;
        Double d025 = 0.0;
        Double d050 = 0.0;
        Double d100 = 0.0;
        Double d200 = 0.0;
        Double d500 = 0.0;
        Double d1000 = 0.0;
        Double d2000 = 0.0;
        Double d5000 = 0.0;
        Double d10000 = 0.0;        
        
        if (!txtCE001.getText().isEmpty()) d001 = 0.01 * new Integer(txtCE001.getText());
        if (!txtCE005.getText().isEmpty()) d005 = 0.05 * new Integer(txtCE005.getText());
        if (!txtCE010.getText().isEmpty()) d010 = 0.10 * new Integer(txtCE010.getText());
        if (!txtCE025.getText().isEmpty()) d025 = 0.25 * new Integer(txtCE025.getText());
        if (!txtCE050.getText().isEmpty()) d050 = 0.50 * new Integer(txtCE050.getText());
        if (!txtCE100.getText().isEmpty()) d100 = 1.00 * new Integer(txtCE100.getText());
        if (!txtCE200.getText().isEmpty()) d200 = 2.00 * new Integer(txtCE200.getText());
        if (!txtCE500.getText().isEmpty()) d500 = 5.00 * new Integer(txtCE500.getText());
        if (!txtCE1000.getText().isEmpty()) d1000 = 10.00 * new Integer(txtCE1000.getText());
        if (!txtCE2000.getText().isEmpty()) d2000 = 20.00 * new Integer(txtCE2000.getText());
        if (!txtCE5000.getText().isEmpty()) d5000 = 50.00 * new Integer(txtCE5000.getText());
        if (!txtCE10000.getText().isEmpty()) d10000 = 100.00 * new Integer(txtCE10000.getText());
        
        Double valorTotalComposicao = d001+d005+d010+d025+d050+d100+d200+d500+d1000+d2000+d5000+d10000;
                
        lblCE001.setText("R$ "+ f.format(d001));
        lblCE005.setText("R$ "+ f.format(d005));
        lblCE010.setText("R$ "+ f.format(d010));
        lblCE025.setText("R$ "+ f.format(d025));
        lblCE050.setText("R$ "+ f.format(d050));
        lblCE100.setText("R$ "+ f.format(d100));
        lblCE200.setText("R$ "+ f.format(d200));
        lblCE500.setText("R$ "+ f.format(d500));
        lblCE1000.setText("R$ "+ f.format(d1000));
        lblCE2000.setText("R$ "+ f.format(d2000));
        lblCE5000.setText("R$ "+ f.format(d5000));
        lblCE10000.setText("R$ "+ f.format(d10000));
                
        lblValorComposicaoCE.setText("R$ "+f.format(valorTotalComposicao));
    }
        
    private void atualizarValorComposicaoSangria(){
                
        Double d001 = 0.0;
        Double d005 = 0.0;
        Double d010 = 0.0;
        Double d025 = 0.0;
        Double d050 = 0.0;
        Double d100 = 0.0;
        Double d200 = 0.0;
        Double d500 = 0.0;
        Double d1000 = 0.0;
        Double d2000 = 0.0;
        Double d5000 = 0.0;
        Double d10000 = 0.0;        
        
        if (!txtS001.getText().isEmpty()) d001 = 0.01 * new Integer(txtS001.getText());
        if (!txtS005.getText().isEmpty()) d005 = 0.05 * new Integer(txtS005.getText());
        if (!txtS010.getText().isEmpty()) d010 = 0.10 * new Integer(txtS010.getText());
        if (!txtS025.getText().isEmpty()) d025 = 0.25 * new Integer(txtS025.getText());
        if (!txtS050.getText().isEmpty()) d050 = 0.50 * new Integer(txtS050.getText());
        if (!txtS100.getText().isEmpty()) d100 = 1.00 * new Integer(txtS100.getText());
        if (!txtS200.getText().isEmpty()) d200 = 2.00 * new Integer(txtS200.getText());
        if (!txtS500.getText().isEmpty()) d500 = 5.00 * new Integer(txtS500.getText());
        if (!txtS1000.getText().isEmpty()) d1000 = 10.00 * new Integer(txtS1000.getText());
        if (!txtS2000.getText().isEmpty()) d2000 = 20.00 * new Integer(txtS2000.getText());
        if (!txtS5000.getText().isEmpty()) d5000 = 50.00 * new Integer(txtS5000.getText());
        if (!txtS10000.getText().isEmpty()) d10000 = 100.00 * new Integer(txtS10000.getText());
        
        Double valorTotalComposicao = d001+d005+d010+d025+d050+d100+d200+d500+d1000+d2000+d5000+d10000;
                
        lblS001.setText("R$ "+ f.format(d001));
        lblS005.setText("R$ "+ f.format(d005));
        lblS010.setText("R$ "+ f.format(d010));
        lblS025.setText("R$ "+ f.format(d025));
        lblS050.setText("R$ "+ f.format(d050));
        lblS100.setText("R$ "+ f.format(d100));
        lblS200.setText("R$ "+ f.format(d200));
        lblS500.setText("R$ "+ f.format(d500));
        lblS1000.setText("R$ "+ f.format(d1000));
        lblS2000.setText("R$ "+ f.format(d2000));
        lblS5000.setText("R$ "+ f.format(d5000));
        lblS10000.setText("R$ "+ f.format(d10000));
                
        lblValorComposicaoMalote.setText("R$ "+f.format(valorTotalComposicao));
    }        

    private void atualizarValorComposicaoPagamentosDiversos(){
                
        Double d001 = 0.0;
        Double d005 = 0.0;
        Double d010 = 0.0;
        Double d025 = 0.0;
        Double d050 = 0.0;
        Double d100 = 0.0;
        Double d200 = 0.0;
        Double d500 = 0.0;
        Double d1000 = 0.0;
        Double d2000 = 0.0;
        Double d5000 = 0.0;
        Double d10000 = 0.0;        
        
        if (!txtP001.getText().isEmpty()) d001 = 0.01 * new Integer(txtP001.getText());
        if (!txtP005.getText().isEmpty()) d005 = 0.05 * new Integer(txtP005.getText());
        if (!txtP010.getText().isEmpty()) d010 = 0.10 * new Integer(txtP010.getText());
        if (!txtP025.getText().isEmpty()) d025 = 0.25 * new Integer(txtP025.getText());
        if (!txtP050.getText().isEmpty()) d050 = 0.50 * new Integer(txtP050.getText());
        if (!txtP100.getText().isEmpty()) d100 = 1.00 * new Integer(txtP100.getText());
        if (!txtP200.getText().isEmpty()) d200 = 2.00 * new Integer(txtP200.getText());
        if (!txtP500.getText().isEmpty()) d500 = 5.00 * new Integer(txtP500.getText());
        if (!txtP1000.getText().isEmpty()) d1000 = 10.00 * new Integer(txtP1000.getText());
        if (!txtP2000.getText().isEmpty()) d2000 = 20.00 * new Integer(txtP2000.getText());
        if (!txtP5000.getText().isEmpty()) d5000 = 50.00 * new Integer(txtP5000.getText());
        if (!txtP10000.getText().isEmpty()) d10000 = 100.00 * new Integer(txtP10000.getText());
        
        Double valorTotalComposicao = d001+d005+d010+d025+d050+d100+d200+d500+d1000+d2000+d5000+d10000;
                
        lblP001.setText("R$ "+ f.format(d001));
        lblP005.setText("R$ "+ f.format(d005));
        lblP010.setText("R$ "+ f.format(d010));
        lblP025.setText("R$ "+ f.format(d025));
        lblP050.setText("R$ "+ f.format(d050));
        lblP100.setText("R$ "+ f.format(d100));
        lblP200.setText("R$ "+ f.format(d200));
        lblP500.setText("R$ "+ f.format(d500));
        lblP1000.setText("R$ "+ f.format(d1000));
        lblP2000.setText("R$ "+ f.format(d2000));
        lblP5000.setText("R$ "+ f.format(d5000));
        lblP10000.setText("R$ "+ f.format(d10000));
                
        lblValorComposicaoPagamento.setText("R$ "+f.format(valorTotalComposicao));
    }
    
    private void atualizarValorComposicaoRetorno(){
                
        Double d001 = 0.0;
        Double d005 = 0.0;
        Double d010 = 0.0;
        Double d025 = 0.0;
        Double d050 = 0.0;
        Double d100 = 0.0;
        Double d200 = 0.0;
        Double d500 = 0.0;
        Double d1000 = 0.0;
        Double d2000 = 0.0;
        Double d5000 = 0.0;
        Double d10000 = 0.0;        
        
        if (!txtRetorno001.getText().isEmpty()) d001 = 0.01 * new Integer(txtRetorno001.getText());
        if (!txtRetorno005.getText().isEmpty()) d005 = 0.05 * new Integer(txtRetorno005.getText());
        if (!txtRetorno010.getText().isEmpty()) d010 = 0.10 * new Integer(txtRetorno010.getText());
        if (!txtRetorno025.getText().isEmpty()) d025 = 0.25 * new Integer(txtRetorno025.getText());
        if (!txtRetorno050.getText().isEmpty()) d050 = 0.50 * new Integer(txtRetorno050.getText());
        if (!txtRetorno100.getText().isEmpty()) d100 = 1.00 * new Integer(txtRetorno100.getText());
        if (!txtRetorno200.getText().isEmpty()) d200 = 2.00 * new Integer(txtRetorno200.getText());
        if (!txtRetorno500.getText().isEmpty()) d500 = 5.00 * new Integer(txtRetorno500.getText());
        if (!txtRetorno1000.getText().isEmpty()) d1000 = 10.00 * new Integer(txtRetorno1000.getText());
        if (!txtRetorno2000.getText().isEmpty()) d2000 = 20.00 * new Integer(txtRetorno2000.getText());
        if (!txtRetorno5000.getText().isEmpty()) d5000 = 50.00 * new Integer(txtRetorno5000.getText());
        if (!txtRetorno10000.getText().isEmpty()) d10000 = 100.00 * new Integer(txtRetorno10000.getText());
        
        Double valorTotalComposicao = d001+d005+d010+d025+d050+d100+d200+d500+d1000+d2000+d5000+d10000;
                
        lblRetorno001.setText("R$ "+ f.format(d001));
        lblRetorno005.setText("R$ "+ f.format(d005));
        lblRetorno010.setText("R$ "+ f.format(d010));
        lblRetorno025.setText("R$ "+ f.format(d025));
        lblRetorno050.setText("R$ "+ f.format(d050));
        lblRetorno100.setText("R$ "+ f.format(d100));
        lblRetorno200.setText("R$ "+ f.format(d200));
        lblRetorno500.setText("R$ "+ f.format(d500));
        lblRetorno1000.setText("R$ "+ f.format(d1000));
        lblRetorno2000.setText("R$ "+ f.format(d2000));
        lblRetorno5000.setText("R$ "+ f.format(d5000));
        lblRetorno10000.setText("R$ "+ f.format(d10000));
                
        lblValorComposicaoRetorno.setText("R$ "+f.format(valorTotalComposicao));
        
    }        
    
        
    private void atualizarValorComposicaoCaixa(){
                
        Double d001 = 0.0;
        Double d005 = 0.0;
        Double d010 = 0.0;
        Double d025 = 0.0;
        Double d050 = 0.0;
        Double d100 = 0.0;
        Double d200 = 0.0;
        Double d500 = 0.0;
        Double d1000 = 0.0;
        Double d2000 = 0.0;
        Double d5000 = 0.0;
        Double d10000 = 0.0;        
        
        if (!txtQ001.getText().isEmpty()) d001 = 0.01 * new Integer(txtQ001.getText());
        if (!txtQ005.getText().isEmpty()) d005 = 0.05 * new Integer(txtQ005.getText());
        if (!txtQ010.getText().isEmpty()) d010 = 0.10 * new Integer(txtQ010.getText());
        if (!txtQ025.getText().isEmpty()) d025 = 0.25 * new Integer(txtQ025.getText());
        if (!txtQ050.getText().isEmpty()) d050 = 0.50 * new Integer(txtQ050.getText());
        if (!txtQ100.getText().isEmpty()) d100 = 1.00 * new Integer(txtQ100.getText());
        if (!txtQ200.getText().isEmpty()) d200 = 2.00 * new Integer(txtQ200.getText());
        if (!txtQ500.getText().isEmpty()) d500 = 5.00 * new Integer(txtQ500.getText());
        if (!txtQ1000.getText().isEmpty()) d1000 = 10.00 * new Integer(txtQ1000.getText());
        if (!txtQ2000.getText().isEmpty()) d2000 = 20.00 * new Integer(txtQ2000.getText());
        if (!txtQ5000.getText().isEmpty()) d5000 = 50.00 * new Integer(txtQ5000.getText());
        if (!txtQ10000.getText().isEmpty()) d10000 = 100.00 * new Integer(txtQ10000.getText());
        
        Double ValorTotalComposicao = d001+d005+d010+d025+d050+d100+d200+d500+d1000+d2000+d5000+d10000;
                
        lblValor001.setText("R$ "+ f.format(d001));
        lblValor005.setText("R$ "+ f.format(d005));
        lblValor010.setText("R$ "+ f.format(d010));
        lblValor025.setText("R$ "+ f.format(d025));
        lblValor050.setText("R$ "+ f.format(d050));
        lblValor100.setText("R$ "+ f.format(d100));
        lblValor200.setText("R$ "+ f.format(d200));
        lblValor500.setText("R$ "+ f.format(d500));
        lblValor1000.setText("R$ "+ f.format(d1000));
        lblValor2000.setText("R$ "+ f.format(d2000));
        lblValor5000.setText("R$ "+ f.format(d5000));
        lblValor10000.setText("R$ "+ f.format(d10000));
        
        lblValorTotalComposicaoCaixa.setText("R$ "+ f.format(ValorTotalComposicao));
    }
    
    private void habilitarEdicaoComposicaoRetorno(boolean b){

            txtRetorno001.setEnabled(b);
            txtRetorno005.setEnabled(b);
            txtRetorno010.setEnabled(b);
            txtRetorno025.setEnabled(b);
            txtRetorno050.setEnabled(b);
            txtRetorno100.setEnabled(b);
            txtRetorno200.setEnabled(b);
            txtRetorno500.setEnabled(b);
            txtRetorno1000.setEnabled(b);
            txtRetorno2000.setEnabled(b);
            txtRetorno5000.setEnabled(b);
            txtRetorno10000.setEnabled(b);
            textAreaObservacaoRetorno.setEnabled(b);
            btRegistrarRetorno.setEnabled(b);
            lblLimpaRetorno.setEnabled(b);
    }
    
        private void configuraCampoNumericoComposicao(int n){
            
            txtL001.setDocument(new IntegerDocument(n));
            txtL005.setDocument(new IntegerDocument(n));
            txtL010.setDocument(new IntegerDocument(n));
            txtL025.setDocument(new IntegerDocument(n));
            txtL050.setDocument(new IntegerDocument(n));
            txtL100.setDocument(new IntegerDocument(n));
            txtL200.setDocument(new IntegerDocument(n));
            txtL500.setDocument(new IntegerDocument(n));
            txtL1000.setDocument(new IntegerDocument(n));
            txtL2000.setDocument(new IntegerDocument(n));
            txtL5000.setDocument(new IntegerDocument(n));
            txtL10000.setDocument(new IntegerDocument(n));

            txtRetorno001.setDocument(new IntegerDocument(n));
            txtRetorno005.setDocument(new IntegerDocument(n));
            txtRetorno010.setDocument(new IntegerDocument(n));
            txtRetorno025.setDocument(new IntegerDocument(n));
            txtRetorno050.setDocument(new IntegerDocument(n));
            txtRetorno100.setDocument(new IntegerDocument(n));
            txtRetorno200.setDocument(new IntegerDocument(n));
            txtRetorno500.setDocument(new IntegerDocument(n));
            txtRetorno1000.setDocument(new IntegerDocument(n));
            txtRetorno2000.setDocument(new IntegerDocument(n));
            txtRetorno5000.setDocument(new IntegerDocument(n));
            txtRetorno10000.setDocument(new IntegerDocument(n));            
            
            txtCE001.setDocument(new IntegerDocument(n));
            txtCE005.setDocument(new IntegerDocument(n));
            txtCE010.setDocument(new IntegerDocument(n));
            txtCE025.setDocument(new IntegerDocument(n));
            txtCE050.setDocument(new IntegerDocument(n));
            txtCE100.setDocument(new IntegerDocument(n));
            txtCE200.setDocument(new IntegerDocument(n));
            txtCE500.setDocument(new IntegerDocument(n));
            txtCE1000.setDocument(new IntegerDocument(n));
            txtCE2000.setDocument(new IntegerDocument(n));
            txtCE5000.setDocument(new IntegerDocument(n));
            txtCE10000.setDocument(new IntegerDocument(n));            

            
            txtS001.setDocument(new IntegerDocument(n));
            txtS005.setDocument(new IntegerDocument(n));
            txtS010.setDocument(new IntegerDocument(n));
            txtS025.setDocument(new IntegerDocument(n));
            txtS050.setDocument(new IntegerDocument(n));
            txtS100.setDocument(new IntegerDocument(n));
            txtS200.setDocument(new IntegerDocument(n));
            txtS500.setDocument(new IntegerDocument(n));
            txtS1000.setDocument(new IntegerDocument(n));
            txtS2000.setDocument(new IntegerDocument(n));
            txtS5000.setDocument(new IntegerDocument(n));
            txtS10000.setDocument(new IntegerDocument(n));            

            txtP001.setDocument(new IntegerDocument(n));
            txtP005.setDocument(new IntegerDocument(n));
            txtP010.setDocument(new IntegerDocument(n));
            txtP025.setDocument(new IntegerDocument(n));
            txtP050.setDocument(new IntegerDocument(n));
            txtP100.setDocument(new IntegerDocument(n));
            txtP200.setDocument(new IntegerDocument(n));
            txtP500.setDocument(new IntegerDocument(n));
            txtP1000.setDocument(new IntegerDocument(n));
            txtP2000.setDocument(new IntegerDocument(n));
            txtP5000.setDocument(new IntegerDocument(n));
            txtP10000.setDocument(new IntegerDocument(n));                        
            
            txtL001.setText("0");
            txtL005.setText("0");
            txtL010.setText("0");
            txtL025.setText("0");
            txtL050.setText("0");
            txtL100.setText("0");
            txtL200.setText("0");
            txtL500.setText("0");
            txtL1000.setText("0");
            txtL2000.setText("0");
            txtL5000.setText("0");
            txtL10000.setText("0");
            
            txtRetorno001.setText("0");
            txtRetorno005.setText("0");
            txtRetorno010.setText("0");
            txtRetorno025.setText("0");
            txtRetorno050.setText("0");
            txtRetorno100.setText("0");
            txtRetorno200.setText("0");
            txtRetorno500.setText("0");
            txtRetorno1000.setText("0");
            txtRetorno2000.setText("0");
            txtRetorno5000.setText("0");
            txtRetorno10000.setText("0");
            
            txtCE001.setText("0");
            txtCE005.setText("0");
            txtCE010.setText("0");
            txtCE025.setText("0");
            txtCE050.setText("0");
            txtCE100.setText("0");
            txtCE200.setText("0");
            txtCE500.setText("0");
            txtCE1000.setText("0");
            txtCE2000.setText("0");
            txtCE5000.setText("0");
            txtCE10000.setText("0");
            
            txtS001.setText("0");
            txtS005.setText("0");
            txtS010.setText("0");
            txtS025.setText("0");
            txtS050.setText("0");
            txtS100.setText("0");
            txtS200.setText("0");
            txtS500.setText("0");
            txtS1000.setText("0");
            txtS2000.setText("0");
            txtS5000.setText("0");
            txtS10000.setText("0");            

            txtP001.setText("0");
            txtP005.setText("0");
            txtP010.setText("0");
            txtP025.setText("0");
            txtP050.setText("0");
            txtP100.setText("0");
            txtP200.setText("0");
            txtP500.setText("0");
            txtP1000.setText("0");
            txtP2000.setText("0");
            txtP5000.setText("0");
            txtP10000.setText("0");                        
            
        }    
        
        private void configuraCampoNumericoMalote(int n){            
            txtGuia.setDocument(new IntegerDocument(n));
            txtMalote.setDocument(new IntegerDocument(n));            
            txtGuia.setText("0");
            txtMalote.setText("0");
        }
        
        private void manipuladorLimpaSelecaoQuandoZero(java.awt.event.FocusEvent evt) {
            if (evt.getComponent() instanceof JTextField) {
                final JTextField campoTexto = (JTextField) evt.getComponent();
                if (campoTexto.getText().equals("0")) {
                    campoTexto.setText("");
                } else {
                    SwingUtilities.invokeLater(new Runnable() {
                        @Override
                        public void run() {
                            campoTexto.setSelectionStart(0);
                            campoTexto.setSelectionEnd(campoTexto.getText().length());
                        }
                    });
                }
            }
        }
        
        private void manipuladorRetornaZeroQuandoVazio(java.awt.event.FocusEvent evt) {
            if (evt.getComponent() instanceof JTextField) {
                final JTextField campoTexto = (JTextField) evt.getComponent();
                if (campoTexto.getText().equals("")) {
                    campoTexto.setText("0");
                }
                atualizarValorComposicaoLancamento();
            }
        }          
        
        private void configuraTabela(JTable tabela, int x){
            
            tabelaLancamento = (DefaultTableModel)tabela.getModel();
            
            DefaultTableCellRenderer esquerda = new DefaultTableCellRenderer();
            DefaultTableCellRenderer centralizado = new DefaultTableCellRenderer();
            DefaultTableCellRenderer direita = new DefaultTableCellRenderer();                        

            esquerda.setHorizontalAlignment(SwingConstants.LEFT);
            centralizado.setHorizontalAlignment(SwingConstants.CENTER);
            direita.setHorizontalAlignment(SwingConstants.RIGHT);             
            
            switch(x){
                case 1:
                    tabela.getColumnModel().getColumn(0).setCellRenderer(centralizado);
                    tabela.getColumnModel().getColumn(1).setCellRenderer(centralizado);
                    tabela.getColumnModel().getColumn(2).setCellRenderer(centralizado);
                    tabela.getColumnModel().getColumn(3).setCellRenderer(centralizado);
                    tabela.getColumnModel().getColumn(4).setCellRenderer(esquerda);
                    tabela.getColumnModel().getColumn(5).setCellRenderer(centralizado);
                    tabela.getColumnModel().getColumn(6).setCellRenderer(centralizado);
                    
                    tabela.getColumnModel().getColumn(0).setPreferredWidth(52);
                    tabela.getColumnModel().getColumn(1).setPreferredWidth(121);
                    tabela.getColumnModel().getColumn(2).setPreferredWidth(131);
                    tabela.getColumnModel().getColumn(3).setPreferredWidth(223);
                    tabela.getColumnModel().getColumn(4).setPreferredWidth(130);
                    tabela.getColumnModel().getColumn(5).setPreferredWidth(152);
                    tabela.getColumnModel().getColumn(6).setPreferredWidth(99);
            }
        }
        
        private void atualizarSaldos() throws SQLException{
            Saldos saldos = dao.consultarSaldos(caixa.getId());
            ftfSaldoAnterior.setValue(saldos.getSaldoAnterior());
            ftfTotalSaidas.setValue(saldos.getTotalSaida());
            ftfTotalEntradas.setValue(saldos.getTotalEntrada());
            ftfTotalPagamento.setValue(saldos.getTotalPagamento());
            ftfSaldoTotal.setValue(saldos.getSaldoTotal());
        }
        
        private void carregarLancamentosEfetuados() throws SQLException{
            
            if(tabelaLancamento.getRowCount()>0){
                do {
                    tabelaLancamento.removeRow(0);
                } while(tabelaLancamento.getRowCount()>0);
            }
            
            List<LancamentosEfetuados> lista = dao.consultarLancamentosEfetuados(caixa.getId());
            listaLancamentosEfetuados = lista;            
            
            Iterator<LancamentosEfetuados> it = lista.iterator();
            
            while (it.hasNext()) {
                LancamentosEfetuados lancamentosEfetuados = it.next();
                String id = f5.format(lancamentosEfetuados.getId());
                String data = new SimpleDateFormat("dd/MM/yyyy HH:mm").format(lancamentosEfetuados.getDataHora());
                String tipo = lancamentosEfetuados.getTipo();
                String descricao = lancamentosEfetuados.getDescricao();
                String valor = "  R$ " + f.format(lancamentosEfetuados.getValor());
                String retorno = lancamentosEfetuados.getRetorno();
                String status = lancamentosEfetuados.getStatus();                
                tabelaLancamento.addRow( new Object[] {id, data, tipo, descricao, valor, retorno, status});                
            }
            carregarLancamentosPendentesRetorno();
            carregarPagamentosPendentesMalote();
            
        }
        
        private void carregarLancamentosPendentesRetorno() throws SQLException{            
            cbRetiradaDeTroco.removeAllItems();            
            cbRetiradaDeTroco.addItem("Selecione");
            List<LancamentosPendentesRetorno> listaLpr = dao.consultarLancamentosPendentesRetorno(caixa.getId());            
            Iterator<LancamentosPendentesRetorno> it = listaLpr.iterator();
            while (it.hasNext()) {
                LancamentosPendentesRetorno lpr = it.next();
                String id = f5.format(lpr.getId());
                String descricao = lpr.getDescricao();
                String praca = lpr.getPraca();
                String valor = f.format(lpr.getValor() * -1);                
                String item = id + " | " + descricao + " | " + praca + " | " + valor;                
                cbRetiradaDeTroco.addItem(item);                                                
            }
        }
        
        private void carregarPagamentosPendentesMalote() throws SQLException{            
            listModel.removeAllElements();
            List<PagamentosPendentesMalote> listaLpr = dao.consultarPagamentosPendentesMalote(caixa.getId());                        
            Iterator<PagamentosPendentesMalote> it = listaLpr.iterator();
            if (!it.hasNext()) {
                rbTipoPagamento.setEnabled(false);
            } else {
                rbTipoPagamento.setEnabled(true);
            }
            while (it.hasNext()) {
                PagamentosPendentesMalote ppm = it.next();
                String id = f5.format(ppm.getId());
                String descricao = ppm.getDescricao();
                String valor = f.format(ppm.getValor());                
                String item = id + " | " + descricao + " | " + valor;
                listModel.addElement(item);
            }
            
        }
        
        private void carregarTransportadoras() throws SQLException{
            List<Transportadora> lista = dao.carregarTransportadoras();
            Iterator<Transportadora> it = lista.iterator();
            while (it.hasNext()) {                
                Transportadora t = it.next();                
                cbTransportadora.addItem(t.getNome());                
            }            
        }
        
        private void carregarContaCorrente() throws SQLException{
            List<ContaCorrente> lista = dao.carregarContaCorrente();
            Iterator<ContaCorrente> it = lista.iterator();
            while (it.hasNext()) {                
                ContaCorrente cc = it.next();                
                cbContaCorrente.addItem(cc.getDescricao());                
            }
        }
        
        private void carregarComposicaoCaixa(int id_caixa) throws SQLException{
            
            List<Composicao> listaComposicaoCaixa = dao.obterComposicaoCaixa(id_caixa);
            Iterator<Composicao> it = listaComposicaoCaixa.iterator();
            while (it.hasNext()) {
                Composicao cc = it.next();
                if (cc.getValor() == 0.01) txtQ001.setText(new Integer(cc.getQuantidade()).toString());
                if (cc.getValor() == 0.05) txtQ005.setText(new Integer(cc.getQuantidade()).toString());
                if (cc.getValor() == 0.10) txtQ010.setText(new Integer(cc.getQuantidade()).toString());
                if (cc.getValor() == 0.25) txtQ025.setText(new Integer(cc.getQuantidade()).toString());
                if (cc.getValor() == 0.50) txtQ050.setText(new Integer(cc.getQuantidade()).toString());
                if (cc.getValor() == 1.00) txtQ100.setText(new Integer(cc.getQuantidade()).toString());
                if (cc.getValor() == 2.00) txtQ200.setText(new Integer(cc.getQuantidade()).toString());
                if (cc.getValor() == 5.00) txtQ500.setText(new Integer(cc.getQuantidade()).toString());
                if (cc.getValor() == 10.00) txtQ1000.setText(new Integer(cc.getQuantidade()).toString());
                if (cc.getValor() == 20.00) txtQ2000.setText(new Integer(cc.getQuantidade()).toString());
                if (cc.getValor() == 50.00) txtQ5000.setText(new Integer(cc.getQuantidade()).toString());
                if (cc.getValor() == 100.00) txtQ10000.setText(new Integer(cc.getQuantidade()).toString());
            }
        }
        
        public void carregarTipoPagamento() throws SQLException{
            List<TipoPagamento> listaTipoPagamento = dao.carregarTipoPagamento();
            Iterator<TipoPagamento> it = listaTipoPagamento.iterator();
            while (it.hasNext()) {                
                TipoPagamento tp = it.next();
                cbTipoPagamento.addItem(tp.getDescricao());
            }            
        }

    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel abaCaixa;
    private javax.swing.JPanel abaLancamento;
    private javax.swing.JPanel abaListaLancamentos;
    private javax.swing.ButtonGroup bgTipoMalote;
    private javax.swing.JButton btAbrirCaixa;
    private javax.swing.JButton btEstornar;
    private javax.swing.JButton btFecharCaixa;
    private javax.swing.JButton btRegistrarCE;
    private javax.swing.JButton btRegistrarMalote;
    private javax.swing.JButton btRegistrarPagamento;
    private javax.swing.JButton btRegistrarRetirada;
    private javax.swing.JButton btRegistrarRetorno;
    private javax.swing.JButton btReimprimirRecibo;
    private javax.swing.JButton btVisualizarLancamento;
    private javax.swing.JComboBox cbContaCorrente;
    private javax.swing.JComboBox cbPraca;
    private javax.swing.JComboBox cbRetiradaDeTroco;
    private javax.swing.JComboBox cbTipoLancamento;
    private javax.swing.JComboBox cbTipoPagamento;
    private javax.swing.JComboBox cbTransportadora;
    private javax.swing.JFormattedTextField ftfSaldoAnterior;
    private javax.swing.JFormattedTextField ftfSaldoTotal;
    private javax.swing.JFormattedTextField ftfTotalEntradas;
    private javax.swing.JFormattedTextField ftfTotalPagamento;
    private javax.swing.JFormattedTextField ftfTotalSaidas;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel100;
    private javax.swing.JLabel jLabel101;
    private javax.swing.JLabel jLabel102;
    private javax.swing.JLabel jLabel103;
    private javax.swing.JLabel jLabel104;
    private javax.swing.JLabel jLabel105;
    private javax.swing.JLabel jLabel106;
    private javax.swing.JLabel jLabel107;
    private javax.swing.JLabel jLabel108;
    private javax.swing.JLabel jLabel109;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel110;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel38;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel41;
    private javax.swing.JLabel jLabel42;
    private javax.swing.JLabel jLabel43;
    private javax.swing.JLabel jLabel44;
    private javax.swing.JLabel jLabel45;
    private javax.swing.JLabel jLabel46;
    private javax.swing.JLabel jLabel47;
    private javax.swing.JLabel jLabel48;
    private javax.swing.JLabel jLabel49;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel50;
    private javax.swing.JLabel jLabel51;
    private javax.swing.JLabel jLabel52;
    private javax.swing.JLabel jLabel53;
    private javax.swing.JLabel jLabel54;
    private javax.swing.JLabel jLabel55;
    private javax.swing.JLabel jLabel56;
    private javax.swing.JLabel jLabel57;
    private javax.swing.JLabel jLabel58;
    private javax.swing.JLabel jLabel59;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel60;
    private javax.swing.JLabel jLabel61;
    private javax.swing.JLabel jLabel62;
    private javax.swing.JLabel jLabel63;
    private javax.swing.JLabel jLabel64;
    private javax.swing.JLabel jLabel65;
    private javax.swing.JLabel jLabel66;
    private javax.swing.JLabel jLabel67;
    private javax.swing.JLabel jLabel68;
    private javax.swing.JLabel jLabel69;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel70;
    private javax.swing.JLabel jLabel71;
    private javax.swing.JLabel jLabel72;
    private javax.swing.JLabel jLabel73;
    private javax.swing.JLabel jLabel74;
    private javax.swing.JLabel jLabel75;
    private javax.swing.JLabel jLabel76;
    private javax.swing.JLabel jLabel77;
    private javax.swing.JLabel jLabel78;
    private javax.swing.JLabel jLabel79;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel80;
    private javax.swing.JLabel jLabel81;
    private javax.swing.JLabel jLabel82;
    private javax.swing.JLabel jLabel83;
    private javax.swing.JLabel jLabel84;
    private javax.swing.JLabel jLabel85;
    private javax.swing.JLabel jLabel86;
    private javax.swing.JLabel jLabel87;
    private javax.swing.JLabel jLabel88;
    private javax.swing.JLabel jLabel89;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JLabel jLabel90;
    private javax.swing.JLabel jLabel91;
    private javax.swing.JLabel jLabel92;
    private javax.swing.JLabel jLabel93;
    private javax.swing.JLabel jLabel94;
    private javax.swing.JLabel jLabel95;
    private javax.swing.JLabel jLabel96;
    private javax.swing.JLabel jLabel97;
    private javax.swing.JLabel jLabel98;
    private javax.swing.JLabel jLabel99;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel14;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JScrollPane jScrollPane7;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator10;
    private javax.swing.JSeparator jSeparator11;
    private javax.swing.JSeparator jSeparator12;
    private javax.swing.JSeparator jSeparator13;
    private javax.swing.JSeparator jSeparator14;
    private javax.swing.JSeparator jSeparator15;
    private javax.swing.JSeparator jSeparator16;
    private javax.swing.JSeparator jSeparator17;
    private javax.swing.JSeparator jSeparator18;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JSeparator jSeparator3;
    private javax.swing.JSeparator jSeparator4;
    private javax.swing.JSeparator jSeparator5;
    private javax.swing.JSeparator jSeparator6;
    private javax.swing.JSeparator jSeparator7;
    private javax.swing.JSeparator jSeparator8;
    private javax.swing.JSeparator jSeparator9;
    private javax.swing.JPanel jpCreditoExterno;
    private javax.swing.JPanel jpGerarMalote;
    private javax.swing.JPanel jpPagamentosDiversos;
    private javax.swing.JPanel jpRetiradaDeTroco;
    private javax.swing.JPanel jpRetornoDeTroco;
    private javax.swing.JLabel lblCE001;
    private javax.swing.JLabel lblCE005;
    private javax.swing.JLabel lblCE010;
    private javax.swing.JLabel lblCE025;
    private javax.swing.JLabel lblCE050;
    private javax.swing.JLabel lblCE100;
    private javax.swing.JLabel lblCE1000;
    private javax.swing.JLabel lblCE10000;
    private javax.swing.JLabel lblCE200;
    private javax.swing.JLabel lblCE2000;
    private javax.swing.JLabel lblCE500;
    private javax.swing.JLabel lblCE5000;
    private javax.swing.JLabel lblDataAbertura;
    private javax.swing.JLabel lblDataAbertura1;
    private javax.swing.JLabel lblDataFechamento;
    private javax.swing.JLabel lblDataFechamento1;
    private javax.swing.JLabel lblL001;
    private javax.swing.JLabel lblL005;
    private javax.swing.JLabel lblL010;
    private javax.swing.JLabel lblL025;
    private javax.swing.JLabel lblL050;
    private javax.swing.JLabel lblL100;
    private javax.swing.JLabel lblL1000;
    private javax.swing.JLabel lblL10000;
    private javax.swing.JLabel lblL200;
    private javax.swing.JLabel lblL2000;
    private javax.swing.JLabel lblL500;
    private javax.swing.JLabel lblL5000;
    private javax.swing.JLabel lblLimpaL;
    private javax.swing.JLabel lblLimpaL1;
    private javax.swing.JLabel lblLimpaP;
    private javax.swing.JLabel lblLimpaRetorno;
    private javax.swing.JLabel lblLimpaS;
    private javax.swing.JLabel lblNome;
    private javax.swing.JLabel lblNome1;
    private javax.swing.JLabel lblNome2;
    private javax.swing.JLabel lblNome3;
    private javax.swing.JLabel lblNome4;
    private javax.swing.JLabel lblNome6;
    private javax.swing.JLabel lblP001;
    private javax.swing.JLabel lblP005;
    private javax.swing.JLabel lblP010;
    private javax.swing.JLabel lblP025;
    private javax.swing.JLabel lblP050;
    private javax.swing.JLabel lblP100;
    private javax.swing.JLabel lblP1000;
    private javax.swing.JLabel lblP10000;
    private javax.swing.JLabel lblP200;
    private javax.swing.JLabel lblP2000;
    private javax.swing.JLabel lblP500;
    private javax.swing.JLabel lblP5000;
    private javax.swing.JLabel lblRestante;
    private javax.swing.JLabel lblRestanteCE;
    private javax.swing.JLabel lblRestanteP;
    private javax.swing.JLabel lblRestanteRetorno;
    private javax.swing.JLabel lblRestanteS;
    private javax.swing.JLabel lblRetorno001;
    private javax.swing.JLabel lblRetorno005;
    private javax.swing.JLabel lblRetorno010;
    private javax.swing.JLabel lblRetorno025;
    private javax.swing.JLabel lblRetorno050;
    private javax.swing.JLabel lblRetorno100;
    private javax.swing.JLabel lblRetorno1000;
    private javax.swing.JLabel lblRetorno10000;
    private javax.swing.JLabel lblRetorno200;
    private javax.swing.JLabel lblRetorno2000;
    private javax.swing.JLabel lblRetorno500;
    private javax.swing.JLabel lblRetorno5000;
    private javax.swing.JLabel lblS001;
    private javax.swing.JLabel lblS005;
    private javax.swing.JLabel lblS010;
    private javax.swing.JLabel lblS025;
    private javax.swing.JLabel lblS050;
    private javax.swing.JLabel lblS100;
    private javax.swing.JLabel lblS1000;
    private javax.swing.JLabel lblS10000;
    private javax.swing.JLabel lblS200;
    private javax.swing.JLabel lblS2000;
    private javax.swing.JLabel lblS500;
    private javax.swing.JLabel lblS5000;
    private javax.swing.JLabel lblTipoPagamento;
    private javax.swing.JLabel lblTitulo;
    private javax.swing.JLabel lblTotal;
    private javax.swing.JLabel lblTotal1;
    private javax.swing.JLabel lblTotal10;
    private javax.swing.JLabel lblTotal11;
    private javax.swing.JLabel lblTotal12;
    private javax.swing.JLabel lblTotal13;
    private javax.swing.JLabel lblTotal15;
    private javax.swing.JLabel lblTotal16;
    private javax.swing.JLabel lblTotal17;
    private javax.swing.JLabel lblTotal18;
    private javax.swing.JLabel lblTotal19;
    private javax.swing.JLabel lblTotal2;
    private javax.swing.JLabel lblTotal20;
    private javax.swing.JLabel lblTotal21;
    private javax.swing.JLabel lblTotal22;
    private javax.swing.JLabel lblTotal23;
    private javax.swing.JLabel lblTotal27;
    private javax.swing.JLabel lblTotal28;
    private javax.swing.JLabel lblTotal29;
    private javax.swing.JLabel lblTotal3;
    private javax.swing.JLabel lblTotal30;
    private javax.swing.JLabel lblTotal31;
    private javax.swing.JLabel lblTotal32;
    private javax.swing.JLabel lblTotal33;
    private javax.swing.JLabel lblTotal34;
    private javax.swing.JLabel lblTotal39;
    private javax.swing.JLabel lblTotal40;
    private javax.swing.JLabel lblTotal41;
    private javax.swing.JLabel lblTotal42;
    private javax.swing.JLabel lblTotal6;
    private javax.swing.JLabel lblTotal7;
    private javax.swing.JLabel lblTotal8;
    private javax.swing.JLabel lblTotal9;
    private javax.swing.JLabel lblUsername;
    private javax.swing.JLabel lblValor001;
    private javax.swing.JLabel lblValor005;
    private javax.swing.JLabel lblValor010;
    private javax.swing.JLabel lblValor025;
    private javax.swing.JLabel lblValor050;
    private javax.swing.JLabel lblValor100;
    private javax.swing.JLabel lblValor1000;
    private javax.swing.JLabel lblValor10000;
    private javax.swing.JLabel lblValor200;
    private javax.swing.JLabel lblValor2000;
    private javax.swing.JLabel lblValor500;
    private javax.swing.JLabel lblValor5000;
    private javax.swing.JLabel lblValorComposicaoCE;
    private javax.swing.JLabel lblValorComposicaoMalote;
    private javax.swing.JLabel lblValorComposicaoPagamento;
    private javax.swing.JLabel lblValorComposicaoRetirada;
    private javax.swing.JLabel lblValorComposicaoRetorno;
    private javax.swing.JLabel lblValorTotalComposicaoCaixa;
    private javax.swing.JLabel lblValorTotalPagamentos;
    private javax.swing.JList listPagamentos;
    private javax.swing.JPanel pCabecalho;
    private javax.swing.JPanel pCabecalhoRetorno;
    private javax.swing.JPanel pComposicao;
    private javax.swing.JPanel pComposicaoRetorno;
    private javax.swing.JPanel pObservacaoRetorno;
    private javax.swing.JPanel pRodape;
    private javax.swing.JPanel pSuperior;
    private javax.swing.JPanel pSuperior1;
    private javax.swing.JPanel pSuperior2;
    private javax.swing.JPanel pSuperior3;
    private javax.swing.JRadioButton rbTipoPagamento;
    private javax.swing.JRadioButton rbTipoSangria;
    private javax.swing.JTabbedPane tabLancamento;
    private javax.swing.JTabbedPane tabPrincipal;
    private javax.swing.JTable tableLancamento;
    private javax.swing.JTextArea textAreaObservacaoCE;
    private javax.swing.JTextArea textAreaObservacaoL;
    private javax.swing.JTextArea textAreaObservacaoMalote;
    private javax.swing.JTextArea textAreaObservacaoP;
    private javax.swing.JTextArea textAreaObservacaoRetorno;
    private javax.swing.JTextField txtCE001;
    private javax.swing.JTextField txtCE005;
    private javax.swing.JTextField txtCE010;
    private javax.swing.JTextField txtCE025;
    private javax.swing.JTextField txtCE050;
    private javax.swing.JTextField txtCE100;
    private javax.swing.JTextField txtCE1000;
    private javax.swing.JTextField txtCE10000;
    private javax.swing.JTextField txtCE200;
    private javax.swing.JTextField txtCE2000;
    private javax.swing.JTextField txtCE500;
    private javax.swing.JTextField txtCE5000;
    private javax.swing.JLabel txtDataAbertura;
    private javax.swing.JLabel txtDataAbertura1;
    private javax.swing.JLabel txtDataFechamento;
    private javax.swing.JLabel txtDataFechamento1;
    private javax.swing.JTextField txtGuia;
    private javax.swing.JTextField txtL001;
    private javax.swing.JTextField txtL005;
    private javax.swing.JTextField txtL010;
    private javax.swing.JTextField txtL025;
    private javax.swing.JTextField txtL050;
    private javax.swing.JTextField txtL100;
    private javax.swing.JTextField txtL1000;
    private javax.swing.JTextField txtL10000;
    private javax.swing.JTextField txtL200;
    private javax.swing.JTextField txtL2000;
    private javax.swing.JTextField txtL500;
    private javax.swing.JTextField txtL5000;
    private javax.swing.JTextField txtMalote;
    private javax.swing.JLabel txtNome;
    private javax.swing.JLabel txtNome1;
    private javax.swing.JTextField txtP001;
    private javax.swing.JTextField txtP005;
    private javax.swing.JTextField txtP010;
    private javax.swing.JTextField txtP025;
    private javax.swing.JTextField txtP050;
    private javax.swing.JTextField txtP100;
    private javax.swing.JTextField txtP1000;
    private javax.swing.JTextField txtP10000;
    private javax.swing.JTextField txtP200;
    private javax.swing.JTextField txtP2000;
    private javax.swing.JTextField txtP500;
    private javax.swing.JTextField txtP5000;
    private javax.swing.JTextField txtQ001;
    private javax.swing.JTextField txtQ005;
    private javax.swing.JTextField txtQ010;
    private javax.swing.JTextField txtQ025;
    private javax.swing.JTextField txtQ050;
    private javax.swing.JTextField txtQ100;
    private javax.swing.JTextField txtQ1000;
    private javax.swing.JTextField txtQ10000;
    private javax.swing.JTextField txtQ200;
    private javax.swing.JTextField txtQ2000;
    private javax.swing.JTextField txtQ500;
    private javax.swing.JTextField txtQ5000;
    private javax.swing.JTextField txtRetorno001;
    private javax.swing.JTextField txtRetorno005;
    private javax.swing.JTextField txtRetorno010;
    private javax.swing.JTextField txtRetorno025;
    private javax.swing.JTextField txtRetorno050;
    private javax.swing.JTextField txtRetorno100;
    private javax.swing.JTextField txtRetorno1000;
    private javax.swing.JTextField txtRetorno10000;
    private javax.swing.JTextField txtRetorno200;
    private javax.swing.JTextField txtRetorno2000;
    private javax.swing.JTextField txtRetorno500;
    private javax.swing.JTextField txtRetorno5000;
    private javax.swing.JTextField txtS001;
    private javax.swing.JTextField txtS005;
    private javax.swing.JTextField txtS010;
    private javax.swing.JTextField txtS025;
    private javax.swing.JTextField txtS050;
    private javax.swing.JTextField txtS100;
    private javax.swing.JTextField txtS1000;
    private javax.swing.JTextField txtS10000;
    private javax.swing.JTextField txtS200;
    private javax.swing.JTextField txtS2000;
    private javax.swing.JTextField txtS500;
    private javax.swing.JTextField txtS5000;
    private javax.swing.JLabel txtStatus;
    private javax.swing.JLabel txtTurno;
    private javax.swing.JLabel txtTurno1;
    private javax.swing.JLabel txtUsername;
    private javax.swing.JLabel txtUsername1;
    private org.jdesktop.beansbinding.BindingGroup bindingGroup;
    // End of variables declaration//GEN-END:variables
}
